cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
int = 01234; output 668 ????
int = 01234; output 668 ????
Jan 17, 2012 at 11:02am UTC
time to c
(107)
so i tried this thing
1
2
int
x= 01234; printf(
"%d"
,x);
and the output was...
668
why?
Jan 17, 2012 at 11:05am UTC
time to c
(107)
Im stupid.
octal.
anyway.
thanks for watching my stupidity.
Jan 17, 2012 at 11:32am UTC
Catfish
(666)
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.