+ 1

Why can not one use "num++" instead of num = num +1

8th Jun 2019, 12:57 AM
Faisal Alghamdi
Faisal Alghamdi - avatar
5 Answers
+ 9
You can use both. Both will increment by 1.
8th Jun 2019, 8:51 PM
AÍąJ
AÍąJ - avatar
+ 6
Why do you think you can't use num++ ?
8th Jun 2019, 3:46 AM
Sonic
Sonic - avatar
+ 4
More than that, you can use: 1) num++ 2) num = num + 1 3) num+=1 Here no difference between these expressions
8th Jun 2019, 1:27 AM
Ivan
Ivan - avatar
0
Thank you all nice community
12th Jun 2019, 6:06 AM
Faisal Alghamdi
Faisal Alghamdi - avatar