Conversion description and printout as result%a floating-point, hexadecimal-digit, and P-notation (C99)
%A floating-point numbers, hexadecimal digits, and P-notation (C99)
%c one character
%d signed decimal integers
%e floating-point number, E-notation method
%E floating-point number, E-notation method
%f floating-point number and decimal notation method
%g automatically selects%f or%e depending on the value.
%G automatically selects%f or%e depending on the value.
%i Signed decimal number (same as%d)
%o unsigned octal integer
%p pointer
%s string
%u unsigned decimal integer
%x uses a hexadecimal digit of 0f unsigned hexadecimal integer
%x uses a hexadecimal digit of 0f unsigned hexadecimal integer
Print a percent percent
There is also a special format%*.*, where the values of the two asterisks are specified by the values of the second and third parameters, printf ("%.*s \ n", 8, "ABCDEFGGGGGG");
printf ("%*.*f \ n", 3,3, 1.25456f);
C language printf format output detailed