@ngn@lemy.lol to Programmer Humor@lemmy.mlEnglish • 2 months agogot himlemy.lolimagemessage-square135fedilinkarrow-up1492arrow-down141
arrow-up1451arrow-down1imagegot himlemy.lol@ngn@lemy.lol to Programmer Humor@lemmy.mlEnglish • 2 months agomessage-square135fedilink
minus-square@SpaceNoodle@lemmy.worldlinkfedilink5•2 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-square@fluckx@lemmy.worldlinkfedilink3•2 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.