if x=5 then x++ and ++x is __ and __.
Answers
Answered by
0
Answer:
cout<<x++; //results 5 and increment the value of x
but...
cout<<++x; // increment the value of x and results 6
I hope it will help you
plz brainliest
Answered by
0
Answer:
Separate Execution:
x++ = 5
++x = 6
Executed Together:
x++ = 5, now is x = 6,
++x = 6 + 1 = 7
Explanation:
x++ means Use and Update.
++x means Update and Use.
Similar questions