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


Please Help Members By Posting Answers For Below Questions

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?

768


What are pointers in C? Give an example where to illustrate their significance.

737


Explain the ternary tree?

590


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

651


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......

1396






What is the description for syntax errors?

604


Differentiate between a for loop and a while loop? What are it uses?

656


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

1458


Why doesnt that code work?

593


write a program to print data of 5 five students with structures?

1596


Differentiate between functions getch() and getche().

610


How can I do peek and poke in c?

608


What is define directive?

627


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15474


How is pointer initialized in c?

573