0

a++ does it increase a two times??

27th Aug 2017, 3:10 PM
rahul negi
rahul negi - avatar
3 Antworten
+ 9
Nope a++ means a=a+1; for two times a=a+2;
27th Aug 2017, 3:19 PM
P R
P R - avatar
+ 5
Nope, once... It's short for a = a + 1
27th Aug 2017, 3:11 PM
Elva
Elva - avatar
+ 2
a++ a += 1 a = a + 1 typically return the same result depending on language
27th Aug 2017, 3:40 PM
A_Hook
A_Hook - avatar