The format of printf is like this:
printf("output String including 0 or more Format Specifiers", expression1,expression 2...expression n) ;
A Format Specifier is a two character symbol. The frst character is always a % and the second a letter from the list below. Here is a full list of Format Specifiers.
%c The character format specifier.
%d The integer format specifier.
%i The integer format specifier (same as %d).
%f The floating-point format specifier.
%e The scientific notation format specifier.
%E The scientific notation format specifier.
%g Uses %f or %e, whichever result is shorter.
%G Uses %f or %E, whichever result is shorter.
%o The unsigned octal format specifier.
%s The string format specifier.
%u The unsigned integer format specifier.
%x The unsigned hexadecimal format specifier.
%X The unsigned hexadecimal format specifier.
%p Displays the corresponding argument that is a pointer.
%n Records the number of characters written so far.
%% Outputs a percent sign.
Additionally we can add modifers to specify the width of the output fields. On the next page we'll see this and some examples.
On the Next Page : Learn more about Format specifiers.

