What ++ means? And --? And whats the difference between - and -- | and + and ++? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What ++ means? And --? And whats the difference between - and -- | and + and ++?

:P

3rd Jul 2017, 5:43 PM
Vinicius Martiniano
Vinicius Martiniano - avatar
3 Answers
+ 1
i++ means i=i+1 i-- means i=i-1 you can't write i++4 but i+4 is ok
3rd Jul 2017, 5:46 PM
Jojo
+ 1
thx
3rd Jul 2017, 5:47 PM
Vinicius Martiniano
Vinicius Martiniano - avatar
0
I++=i+1 + is the addition operator
3rd Jul 2017, 6:17 PM
josh mizzi
josh mizzi - avatar