Answer Posted / harinath
as the above person said the answer is right but
at first the evaluation starts from denominator, according
to operator precedence pre-increment has more value than
other two(/ and post-increment)
so at first ++a=6 is assigned to a
now the value in a is 6 .so 6/6 gives the value 1.
then post-increment occurs to the value in a(ie.,1).
so the value of a is finally 2(1+1).
| Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What is operator promotion?
What are qualifiers and modifiers c?
Why dont c comments nest?
What are structural members?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
What is a far pointer in c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
What do you mean by dynamic memory allocation in c?
What is #ifdef ? What is its application?
An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode
What is the difference between a free-standing and a hosted environment?
What is function pointer c?
How do you define a string?
i = 25;switch (i) {case 25: printf("The value is 25 ");case 30: printf("The value is 30 "); When the above statements are executed the output will be : a) The value is 25 b) The value is 30 c) The value is 25 The value is 30 d) none