+ 3
If x = 5; how comes when you do ++x = 5.
and not 6?
6 Answers
+ 10
x = 5;
// 5 is assigned to x
++x = 5;
// x is incremented by one, and then 5 is assigned to x
// result? x is still 5, because the incrementing comes before the assigning.
+ 9
If x = 5, x++ will be 5 but ++x will be 6.
+ 3
Good question, good answer.
+ 3
thanks guys
0
hello
0
++x = 6