A small description of the required conversions :
% | Type |
---|---|
%c | Print a single character. |
%s | Print a string of characters. |
%p | print the address of a variable in hexadecimal format. |
%d | Print a decimal (base 10) number. |
%i | Print an integer in base 10. |
%u | Print an unsigned integer. |
%x | Print a number in hexadecimal ( lowercase). |
%X | Print a number in hexadecimal ( uppercase). |
%% | caractère %. |