Increment int Different 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