What does it means; for example: i++ or i--? Note : i as variable. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does it means; for example: i++ or i--? Note : i as variable.

and what that's using for?

24th Oct 2018, 5:52 AM
Mas Intan Putri Apriani
Mas Intan Putri Apriani - avatar
3 Answers
+ 3
24th Oct 2018, 6:41 AM
Ipang
+ 1
"i-- " is the same as "i-1" And "i++" is the same as "i+1". It is using in cycles "for" for to simplify the code. example: for(int i, i<10, i++) It's more convenient than "i+1"
24th Oct 2018, 6:12 AM
Iryna Misiuchenko
Iryna Misiuchenko - avatar
0
Marcus McKenzie Thank you so much
27th Oct 2018, 3:50 PM
Mas Intan Putri Apriani
Mas Intan Putri Apriani - avatar