ngn@lemy.lol to Programmer Humor@lemmy.mlEnglish · 9 months agogot himlemy.lolimagemessage-square129fedilinkarrow-up1222arrow-down122
arrow-up1200arrow-down1imagegot himlemy.lolngn@lemy.lol to Programmer Humor@lemmy.mlEnglish · 9 months agomessage-square129fedilink
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up0·9 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-up0·9 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.