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

What is an example of structure?

785


Why we use int main and void main?

761


What is the Purpose of 'extern' keyword in a function declaration?

836


What is the benefit of using an enum rather than a #define constant?

899


What language is c written?

733






Can I initialize unions?

792


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

863


What are type modifiers in c?

795


What is 02d in c?

817


How can you be sure that a program follows the ANSI C standard?

1349


Is it better to bitshift a value than to multiply by 2?

837


`write a program to display the recomended action depends on a color of trafic light using nested if statments

1861


Find MAXIMUM of three distinct integers using a single C statement

799


What’s a signal? Explain what do I use signals for?

820


Compare array data type to pointer data type

795