r/ProgrammerHumor • • 2d ago

Meme technicallyCorrect

Post image
1.3k Upvotes

48 comments sorted by

View all comments

Show parent comment

5

u/2eanimation 2d ago

i = 0
x = ++i
x == 1 -> true

vs

i = 0
x = i++
x == 0 -> true

0

u/[deleted] 1d ago

[deleted] — view deleted comment

1

u/2eanimation 1d ago

I don’t know what your point here is, but what is x? x++ == 0 -> true only holds if x was 0. You haven’t defined x tho.