You're viewing a single thread.
All comments
120
comments
Looks like 0100 rocks to me
17 0 ReplyThat'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
12 0 Reply00 = 0 01 = 1 10 = 2 11 = 3 100 = 4 .....
3 0 ReplyIn C any number that starts with 0 is implicitly interpreted as an octal
int i = 0100; // this is octal 100 i.e. 64
3 0 Reply
120
comments
Scroll to top