MHLoppy@fedia.io to Programmer Humor@programming.dev · 12 天前isInHell = 'true'fedia.ioimagemessage-square83fedilinkarrow-up1685arrow-down14file-text
arrow-up1681arrow-down1imageisInHell = 'true'fedia.ioMHLoppy@fedia.io to Programmer Humor@programming.dev · 12 天前message-square83fedilinkfile-text
minus-squareTja@programming.devlinkfedilinkarrow-up16·11 天前And you all complained when in C we used 1 and 0…
minus-squareTja@programming.devlinkfedilinkarrow-up4·11 天前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…
minus-squarenpcknapsack@lemmy.calinkfedilinkEnglisharrow-up2·11 天前Damn 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