Format
|
Description
|
%c and %C
|
Single character and wide character
|
%d or %I
|
Signed decimal integer
|
%u
|
Unsigned decimal integer
|
%o
|
Unsigned octal integer
|
%x or %X
|
Unsigned hexadecimal integer using 'abcdef' or 'ABCDEF' for the hexadecimal digits.
|
%e or %E
|
Exponential format using e or E
|
%f
|
Floating point
|
%g
|
Signed value printed in f or e format depending on which is smaller
|
%G
|
Signed value printed in f or E format depending on which is smaller
|