main()
{
int i = 10;
printf(" %d %d %d \n", ++i, i++, ++i);
}
Answer Posted / krityangan
The Answer is 13 11 13
because the post increment will printed first and then pre.
i=10
the ++i=11,i++=12,++i=13,but in c the compiler will print ++p which is now 13 and after that when the compiler come to i++ it will print 11 because in the pre addition the previous vale is printed first andthan i= 12.
| Is This Answer Correct ? | 27 Yes | 11 No |
Post New Answer View All Answers
Tell me when is a void pointer used?
What is a header file?
What does calloc stand for?
Explain logical errors? Compare with syntax errors.
What are the 5 elements of structure?
how do you execute a c program in unix.
#include
How to Throw some light on the splay trees?
What is page thrashing?
Can you please compare array with pointer?
What does != Mean in c?
How do you override a defined macro?
praagnovation
What are type modifiers in c?
Explain what is page thrashing?