what is the value of 'i'?

i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")

Answer Posted / aditya

i=strlen("Blue")+strlen("People")/strlen("Red")-strlen
("green")
it is evaluated as
strlen("People")/strlen("Red")
6-4 as 2 then
strlen("Blue")+2
4+2 as 6 then
6-strlen("green")
6-5 as 1

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Should a function contain a return statement if it does not return a value?

588


Is flag a keyword in c?

673


What is the difference between text and binary i/o?

586


What is the use of sizeof?

544


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

681






Explain the use of fflush() function?

618


Which driver is a pure java driver

983


What is scope rule in c?

597


Why c is called a mid level programming language?

599


Why is c still so popular?

606


write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a

1445


Write a programme using structure that create a record of students. The user allow to add a record and delete a record and also show the records in ascending order.

1612


What is c preprocessor mean?

776


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

642


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

637