Character
| Argument Type
| Printed As
|
d,i
| int
| decimal number
|
o
| int
| unsigned octal number without a leading zero
|
x,X
| int
| unsigned hexadecimal number without a leading 0x
|
u
| int
| unsigned decimal number
|
c
| int
| single character
|
s
| char *
| print characters until either `\0' or the number of characters given in the precision is reached
|
e,E
| double
| engineering notation (m.dddddd e+exponent). If precision is greater than fractional part, prints trailing zeros
|
g,G
| double
| engineering notation without trailing zeros or trailing decimal point
|
%
| none
| print the character `%'
|