ngn@lemy.lol to Programmer Humor@lemmy.mlEnglish · 7 months agogot himlemy.lolimagemessage-square134fedilinkarrow-up1504
arrow-up1504imagegot himlemy.lolngn@lemy.lol to Programmer Humor@lemmy.mlEnglish · 7 months agomessage-square134fedilink
minus-squareSpaceNoodle@lemmy.worldlinkfedilinkarrow-up5·7 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·7 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.