cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
user name:
password:
Forgot your password?
please wait
try again
cancel
forgot your password?
sign up
log in
[Legacy version]
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
error in int
error in int
May 13, 2013 at 7:30am
May 13, 2013 at 7:30am UTC
Pter0dactyl
(196)
when I initialize an integer as i=0123; it creates an error while execution in Dev C++.but if I write it as i=123,Its not an error.Any idea why it happens.
May 13, 2013 at 7:36am
May 13, 2013 at 7:36am UTC
keskiverto
(10423)
Could be octal:
http://www.cplusplus.com/doc/tutorial/constants/
May 13, 2013 at 8:07am
May 13, 2013 at 8:07am UTC
Pter0dactyl
(196)
thanx for the answer.
Topic archived. No new replies allowed.