realitista@lemmy.world to Science Memes@mander.xyzEnglish · 6 months agoEvery base is base 10lemmy.worldimagemessage-square176fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageEvery base is base 10lemmy.worldrealitista@lemmy.world to Science Memes@mander.xyzEnglish · 6 months agomessage-square176fedilink
minus-squareDusktracer@lemmy.worldlinkfedilinkEnglisharrow-up0·5 months ago00 = 0 01 = 1 10 = 2 11 = 3 100 = 4 …
minus-squareمهما طال الليل@lemm.eelinkfedilinkEnglisharrow-up0·edit-25 months agoIn C any number that starts with 0 is implicitly interpreted as an octal int i = 0100; // this is octal 100 i.e. 64
That’s not 64 rocks
00 = 0 01 = 1 10 = 2 11 = 3 100 = 4 …
In C any number that starts with 0 is implicitly interpreted as an octal
int i = 0100; // this is octal 100 i.e. 64