0
I need help on increments it is not working like how i think its supposed to
3 odpowiedzi
0
I think you're mixing up pre-increment (++x) and post-increment (x++).
y = ++x
does the same as
x = x+1
y = x
y = x++
does the same as
y = x
x = x+1
0
Thanks but do you mean that ++x is the same as x++ because it gives the same thing? From what you have written
0
Thanks i get it now