I just want to add that if you want to display number in binary format, you can't do it with printf.
But you can do it with
itoa
http://www.cplusplus.com/ref/cstdlib/itoa.html
also AFAIK you can't specify binary number (like 00101b) I think only 1234, 0x0033 and 07654 works (deciman, hex and octal)
IMO it's not in ANSI C/C++
http://www.cs.colorado.edu/~eliuser/c_html/c.html
http://www.comnets.rwth-aachen.de/do.../contents.html