Every base is base 10
Every base is base 10
Every base is base 10
You're viewing a single thread.
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.
undefined
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
undefined
int i = 0100; // this is octal 100 i.e. 64