int = 01234; output 668 ????

so i tried this thing

1
2
int x= 01234;
printf("%d",x);

and the output was...

668


why?
Im stupid.
octal.
anyway.
thanks for watching my stupidity.
You're not stupid for asking a question, and you're not stupid for learning, and even less so for learning from your own question.
So congratulations...
Topic archived. No new replies allowed.