Gollum@feddit.de to Programmer Humor@programming.dev · 2 years agoI mean it could be righti.imgur.comimagemessage-square9fedilinkarrow-up142arrow-down13
arrow-up139arrow-down1imageI mean it could be righti.imgur.comGollum@feddit.de to Programmer Humor@programming.dev · 2 years agomessage-square9fedilink
minus-squareHotzilla@sopuli.xyzlinkfedilinkarrow-up0·2 years agoWhat if int overflows? Is it still false?
minus-squarerhpp@programming.devlinkfedilinkarrow-up1·2 years 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++