Increment int Different values

Hi There ı am trying to make different Increment int values for 3 different int but when ı change 1 of increment int all of them chang same value how can ı change different value for each of them ?

ı added first and second increment photos they have same values



Why are you using “make literal int?” ++ and – need to be passed the actual variable in order to modify them. They need to be passed by reference, not value.

And ++ and – are macros that SET the variable you pass, you don’t need to assign it again afterwards.

1 Like