+ 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
1 Réponse
+ 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;