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 is the use of static variable in c?
How can I split up a string into whitespace-separated fields?
What are multibyte characters?
Is Exception handling possible in c language?
a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none
What is scope rule in c?
Explain about block scope in c?
write a program to copy the string using switch case?
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
What is difference between structure and union in c programming?
Explain how do you print an address?
What is the g value paradox?
Does c have circular shift operators?
What is an array? What the different types of arrays in c?
What is the difference between exit() and _exit() function in c?