@realitista@lemmy.world to Science Memes@mander.xyzEnglish • 6 months agoEvery base is base 10lemmy.worldimagemessage-square196fedilinkarrow-up11.22Karrow-down130
arrow-up11.19Karrow-down1imageEvery base is base 10lemmy.world@realitista@lemmy.world to Science Memes@mander.xyzEnglish • 6 months agomessage-square196fedilink
minus-squareمهما طال الليلlinkfedilinkEnglish10•edit-26 months agoThat’s not 64 rocks Edit: In C any number that starts with 0 is implicitly interpreted as an octal. int i = 0100; // this is octal 100 i.e. 64 I can tell from the upovotes vs. downvotes that I’m too old
minus-square@Dusktracer@lemmy.worldlinkfedilinkEnglish3•6 months ago00 = 0 01 = 1 10 = 2 11 = 3 100 = 4 …
minus-squareمهما طال الليلlinkfedilinkEnglish3•edit-26 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
Looks like 0100 rocks to me
That’s not 64 rocks
Edit: In C any number that starts with 0 is implicitly interpreted as an octal.
int i = 0100; // this is octal 100 i.e. 64
I can tell from the upovotes vs. downvotes that I’m too old
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