Printf Format String

The following meta-characters can show up in a format string. They stand for parameters in the order of their appearance. They can be qualified e.g. with the number of digits which should be printed.

%d

signed int

%u

unsigned int

%x

hexadecimal unsigned int

%c

character

%f

double and float

%s

string (array of characters)

%%

To print a %