cm0002@lemmy.zip to Programmer Humor@programming.dev · 14 days agoMore code = more betterlemmy.zipimagemessage-square94linkfedilinkarrow-up1665arrow-down116
arrow-up1649arrow-down1imageMore code = more betterlemmy.zipcm0002@lemmy.zip to Programmer Humor@programming.dev · 14 days agomessage-square94linkfedilink
minus-squarespongebue@lemmy.worldlinkfedilinkarrow-up1·edit-214 days agoThat 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.
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.