0

i can not understand x=x++

5th Feb 2017, 8:24 AM
Rahul Dey
Rahul Dey - avatar
4 Answers
+ 2
x++ means in simple words use first increment second. so in x=x++ current value of x is assigned to x itself, so the value change does not come into effect
5th Feb 2017, 8:42 AM
Jishnu Jayarajan
+ 1
++x means x will have incremented value
5th Feb 2017, 10:46 AM
Jishnu Jayarajan
0
so ++x
5th Feb 2017, 10:26 AM
Rahul Dey
Rahul Dey - avatar
0
oo
5th Feb 2017, 11:18 AM
Rahul Dey
Rahul Dey - avatar