Format Specifiers
Conversion Definition
%b Unsigned binary integer
%c Character
%d, i Decimal number
%e Floating point number in scientific notation
%E Floating point number in scientific notation using capital E
%f, %F Floating point number
%g Floating point number using either e or f conversion, whichever takes the least space
%G Floating point number using either e or f conversion, whichever takes the least space
%ld, %D Long decimal number
%lu, %U Long unsigned decimal number
%lo, %O Long octal number
%p Pointer (hexadecimal)
%s String
%u Unsigned decimal number
%x Hexadecimal number
%X Hexadecimal number using capital X
%lx Long hexidecimal number
%% Print a literal percent sign
|