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
What is the difference between abs() and fabs() functions?
what do you mean by inline function in C?
Why is c called "mother" language?
What does sizeof return c?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What do mean by network ?
What does %p mean?
What is structure packing in c?
What is typedef example?
How many keywords (reserve words) are in c?
Which programming language is best for getting job 2020?
How is null defined in c?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Explain the Difference between the New and Malloc keyword.