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 an example of structure?
Why we use int main and void main?
What is the Purpose of 'extern' keyword in a function declaration?
What is the benefit of using an enum rather than a #define constant?
What language is c written?
Can I initialize unions?
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array
What are type modifiers in c?
What is 02d in c?
How can you be sure that a program follows the ANSI C standard?
Is it better to bitshift a value than to multiply by 2?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
Find MAXIMUM of three distinct integers using a single C statement
What’s a signal? Explain what do I use signals for?
Compare array data type to pointer data type