Writing Hex and Octal Values in C - UMD Department of Computer Science
Introduction Although base 10 is a convenient way to write numbers in a program, occasionally you'll want to write numbers in octal or hex (for int values). Fortunately, C/C++/Java makes this simple. To write numbers in octal, precede the value with a 0. ...