What will be the output of
x++ + ++x?
Answer Posted / shivu
4
printf or any other expression executes from right. So first
prefix increment. then 2 and assigned to y. and will get add
with the result again, then it will increment.
now the value of x is 3. but the output is 4.
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are two dimensional arrays alternatively called as?
What do you mean by command line argument?
what are bit fields? What is the use of bit fields in a structure declaration?
What is class and object in c?
Explain what is the general form of a c program?
Implement bit Array in C.
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.
What is non linear data structure in c?
What is pass by reference in c?
What is scanf_s in c?
What does %c mean in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Does free set pointer to null?
How to write a multi-statement macro?
What is the difference between exit() and _exit() function?