What does it mean when a numeric constant in C/C++ is prefixed with a 0?

In C/C++ a numeric literal prefixed with a ‘0’ is octal (base 8).

See http://www.cplusplus.com/doc/tutorial/constants/

Leave a Comment