main()
{
int i = 10;
printf(" %d %d %d \n", ++i, i++, ++i);
}
Answer Posted / dhivya
11 11 13
++i which means i is first incremented and then printed thus i value becomes 11,
i++ which means i is printed and then it is incremented, since the value of i is now 11, it is printed and then incremented to 12.
again ++i , increments i to 13 and then prints.
| Is This Answer Correct ? | 66 Yes | 38 No |
Post New Answer View All Answers
Differentiate between declaring a variable and defining a variable?
What is a constant?
Where static variables are stored in c?
What are the advantages of using new operator as compared to the function malloc ()?
please give me some tips for the placement in the TCS.
Does free set pointer to null?
What is context in c?
code for quick sort?
What is your stream meaning?
Does * p ++ increment p or what it points to?
Explain how can you avoid including a header more than once?
In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping
How many bytes are occupied by near, far and huge pointers (dos)?
What do you mean by keywords in c?
Describe the header file and its usage in c programming?