MHLoppy@fedia.io to Programmer Humor@programming.dev · 3 days agoisInHell = 'true'fedia.ioimagemessage-square80fedilinkarrow-up1650arrow-down13file-text
arrow-up1647arrow-down1imageisInHell = 'true'fedia.ioMHLoppy@fedia.io to Programmer Humor@programming.dev · 3 days agomessage-square80fedilinkfile-text
minus-squareTja@programming.devlinkfedilinkarrow-up14·2 days agoAnd you all complained when in C we used 1 and 0…
minus-squareTja@programming.devlinkfedilinkarrow-up4·2 days agoAkcshually we use 0 and “not equal 0”, since “not 0” would be 0xFF…FF, and (at least gcc) gives back a 1 for a true expression. No idea about the spec, probably undefined…
minus-squarenpcknapsack@lemmy.calinkfedilinkEnglisharrow-up2·1 day agoDamn you for correcting me correctly! :D
And you all complained when in C we used 1 and 0…
We use 0 and not 0…
Akcshually we use 0 and “not equal 0”, since “not 0” would be 0xFF…FF, and (at least gcc) gives back a 1 for a true expression. No idea about the spec, probably undefined…
Damn you for correcting me correctly! :D