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 the difference between abs() and fabs() functions?

609


what do you mean by inline function in C?

620


Why is c called "mother" language?

861


What does sizeof return c?

610


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

735






What is the difference between declaring a variable by constant keyword and #define ing that variable?

2705


What do mean by network ?

661


What does %p mean?

598


What is structure packing in c?

612


What is typedef example?

619


How many keywords (reserve words) are in c?

624


Which programming language is best for getting job 2020?

611


How is null defined in c?

654


Why is it usually a bad idea to use gets()? Suggest a workaround.

911


Explain the Difference between the New and Malloc keyword.

690