Format Specified Meaning
c data item is a single character
d data item is a decimal integer
e data item is a floating point value
f data item is a floating point value
g data item is a floating point value
h* data item is a short integer
i data item is a decimal, hexadecimal or octal integer
o data item is a octal integer
s data item is a string followed by a white space
u data item is a is an unsigned decimal integer
x data item is a hexadecimal integer
[…]* data item is a string which may include while space characters
*Only applicable for data input i.e for scanf() function.
appendix
B
Table of Format Specif iers