+ 1

how does ++x and x++ works?

13th Jun 2016, 2:09 PM
MKS monkey
MKS monkey - avatar
2 Answers
+ 7
++x // adds 1 to the value of x before // performing any operations on x x++ // first performs operation on x and then // adds 1 to the value of x
13th Jun 2016, 2:34 PM
Satan 666
Satan 666 - avatar
+ 1
like post and pre increment
13th Jun 2016, 4:00 PM
Pragathi Bhat
Pragathi Bhat - avatar