ngn to Programmer Humor@lemmy.mlEnglish · 4 months agogot himimagemessage-square135fedilinkarrow-up1500arrow-down141
arrow-up1459arrow-down1imagegot himngn to Programmer Humor@lemmy.mlEnglish · 4 months agomessage-square135fedilink
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up5·4 months agoNo. ++p returns incremented p. p += 1 returns incremented p. p = p + 1 returns incremented p. p++ returns p before it is incremented.
minus-squarefluckx@lemmy.worldlinkfedilinkarrow-up3·4 months agoRight. So i had them the other way around. :D Thanks for clarifying.
No.
++p returns incremented p.
p += 1 returns incremented p.
p = p + 1 returns incremented p.
p++ returns p before it is incremented.
Right. So i had them the other way around. :D
Thanks for clarifying.