Gollum@feddit.de to Programmer Humor@lemmy.ml · 1 year agoFor?i.imgur.comexternal-linkmessage-square12fedilinkarrow-up186arrow-down122cross-posted to: programmer_humor@programming.dev
arrow-up164arrow-down1external-linkFor?i.imgur.comGollum@feddit.de to Programmer Humor@lemmy.ml · 1 year agomessage-square12fedilinkcross-posted to: programmer_humor@programming.dev
minus-squareVigge93@lemmy.worldlinkfedilinkarrow-up1·1 year agoNot quite the same, there’s a subtle but significant difference
minus-squareVigge93@lemmy.worldlinkfedilinkarrow-up2·1 year agoWhat happens on the next iteration when i = 2,147,483,647 for each of our loops?
for(int i = 1; i > 0; i++)
-8 bytes
for (int i=1;;i++)
Not quite the same, there’s a subtle but significant difference
Which is?
What happens on the next iteration when i = 2,147,483,647 for each of our loops?