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
If a variable is a pointer to a structure, then which operator is used to access data members of the structure through the pointer variable?
What are pointers in C? Give an example where to illustrate their significance.
Explain the ternary tree?
What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is the description for syntax errors?
Differentiate between a for loop and a while loop? What are it uses?
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
Why doesnt that code work?
write a program to print data of 5 five students with structures?
Differentiate between functions getch() and getche().
How can I do peek and poke in c?
What is define directive?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
How is pointer initialized in c?