What is different of ++8 and 8++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is different of ++8 and 8++

18th Apr 2019, 12:39 PM
Rafi Wira
2 Answers
+ 1
I thought that the 8 was an example for the value inside a varriable.
18th Apr 2019, 1:04 PM
Dragonxiv
Dragonxiv - avatar
0
++8 first increments and then returns 9 8++ first returns 8 than increments it to 9
18th Apr 2019, 12:44 PM
Dragonxiv
Dragonxiv - avatar