MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1y5vntt/technicallycorrect/19t7kok95mo8y/?context=3
r/ProgrammerHumor • u/Apprehensive_Bit7392 • 19h ago
42 comments sorted by
View all comments
Show parent comment
5
i = 0x = ++ix == 1 -> true
vs
i = 0x = i++x == 0 -> true
1 u/failedsatan 3h ago not quite, it's more x++ == 0 -> true and ++x == 0 -> false
1
not quite, it's more x++ == 0 -> true and ++x == 0 -> false
x++ == 0
++x == 0
View all comments
Show parent comment
5
u/2eanimation 18h ago
i = 0
x = ++i
x == 1 -> true
vs
i = 0
x = i++
x == 0 -> true