Appendix B

Table of Format Specifiers

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.

Get Data Structures using C, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.