+ 1

Var a = 10, ++ now is 11

can somrone help explain this clearer?

16th Sep 2018, 6:31 PM
Owl
3 Answers
+ 1
var a = 10 // means a character have value 10 now a++; // a++ means a=a+1 so a=10+1; that's why a=11
16th Sep 2018, 6:54 PM
Kirtan
Kirtan - avatar
+ 1
a++ means + 1
16th Sep 2018, 7:44 PM
PandaThePumpkin
PandaThePumpkin - avatar
+ 1
thank you all
16th Sep 2018, 7:45 PM
Owl