this post was submitted on 09 May 2024
450 points (92.3% liked)

Programmer Humor

32588 readers
956 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 5 points 6 months ago (1 children)

No.

++p returns incremented p.

p += 1 returns incremented p.

p = p + 1 returns incremented p.

p++ returns p before it is incremented.

[โ€“] [email protected] 3 points 6 months ago

Right. So i had them the other way around. :D

Thanks for clarifying.