MHLoppy@fedia.io to Programmer Humor@programming.dev · 22 days agoisInHell = 'true'fedia.ioimagemessage-square79linkfedilinkarrow-up1675arrow-down14file-text
arrow-up1671arrow-down1imageisInHell = 'true'fedia.ioMHLoppy@fedia.io to Programmer Humor@programming.dev · 22 days agomessage-square79linkfedilinkfile-text
minus-squareLovable Sidekick@lemmy.worldlinkfedilinkEnglisharrow-up8·edit-222 days agoisInHell = '(x + 1 > x)'
minus-squareLovable Sidekick@lemmy.worldlinkfedilinkEnglisharrow-up1·22 days agoLOL but it was ’ x + 1’ not ‘x += 1’ tho.
minus-squareFlipper@feddit.orglinkfedilinkarrow-up4·22 days agoWe don’t know what value X has. If it isn’t initialised it could have any value including the maximum. Then it would overflow. But let’s be honest, that is unlikely.
isInHell = '(x + 1 > x)'
Fun and games till x overflows.
LOL but it was ’ x + 1’ not ‘x += 1’ tho.
We don’t know what value X has. If it isn’t initialised it could have any value including the maximum. Then it would overflow.
But let’s be honest, that is unlikely.