Gollum@feddit.de to Programmer Humor@programming.dev · 1 year agoI mean it could be righti.imgur.comexternal-linkmessage-square9fedilinkarrow-up1168arrow-down19
arrow-up1159arrow-down1external-linkI mean it could be righti.imgur.comGollum@feddit.de to Programmer Humor@programming.dev · 1 year agomessage-square9fedilink
minus-squareHotzilla@sopuli.xyzlinkfedilinkarrow-up2·1 year agoWhat if int overflows? Is it still false?
minus-squarerhpp@programming.devlinkfedilinkarrow-up6·1 year agoStill false, thanks to compiler optimizations. Remember that integer overflow is UB. (unless you’re using unsigned int or a programming language which strictly defines integer overflow, possibly as an error) P.S.: Assuming this is C/C++
What if int overflows? Is it still false?
Still false, thanks to compiler optimizations. Remember that integer overflow is UB. (unless you’re using unsigned int or a programming language which strictly defines integer overflow, possibly as an error)
P.S.: Assuming this is C/C++