%a
floating-point number, hexadecimal digits and p-Notation
%A
floating point number, hexadecimal digits and P-Notation
%c
Single character
%d
signed decimal integer
%e
floating point number, e-notation
%E
floating point number, e-notation
%f
floating point number, decimal notation
%g
Use %f or %e, depending on the value. The %e style is used if the
exponent is
less than −4 or greater than or equal to the precision.
%G
Use %f or %e, depending on the value. The %E style is used if the
exponent is
less than −4 or greater than or equal to the precision.
%i
signed decimal integer (same as %d)
%o
unsigned octal integer
%p
A pointer
%s
character string
%u
unsigned decimal integer
%x
unsigned hexadecimal integer, using hex digits 0f
%X
unsigend hexadecimal integer, using hex digits OF
%%
prints a percent sign