+ 1
Why can not one use "num++" instead of num = num +1
5 Answers
+ 9
You can use both. Both will increment by 1.
+ 6
Why do you think you can't use num++ ?
+ 4
More than that, you can use:
1) num++
2) num = num + 1
3) num+=1
Here no difference between these expressions
0
Thank you all nice community