wath is Increment ++ and Decrement -- | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

wath is Increment ++ and Decrement --

hello can someone help me i don`t understand the Increment ++ and Decrement -- and i don't now what to do

24th Aug 2018, 10:34 PM
Souhail “ninocity3” Mouradi
Souhail “ninocity3” Mouradi - avatar
1 Answer
+ 1
At first, you could consider search in the searchbar but, since you already asked, here the answer(its for all languages the same) x = y++ means x = y; y+=1; x = ++y means y+=1; x = y same for -- x = y-- means x = y; y -= 1; x = --y; means y -= 1; x = y;
24th Aug 2018, 10:48 PM
Roel
Roel - avatar