you are viewing a single comment's thread
view the rest of the comments
[–] 1 point 10 months ago*

That only works if x is already 0

If i is 10 and x is zero, yes, x -= i would have a value of -10. If x was 5 from something else previously, x-=i would end with an x value of -5.

  • source
  • parent