7213709-C-Programming

Page 313

x

Hexadecimal integer

o

Octal integer s

String

c

Single character f

Fixed decimal floating point

e

Scientific notation floating point g

Use f or e, whichever is shorter The letter l (ell) can be prefixed before these for long types. scanf

conversion specifers

The conversion characters for scanf are not identical to those for printf and it is important to distinguish the long types here. d

Denary integer ld

Long int

x

Hexadecimal integer o

Octal integer

h

Short integer f

Float type

lf

Long float or double e

Float type

le

Double c

Single character

s

Character string

Maths Library These functions require double parameters and return double values unless otherwise stated. It is important to include math.h. ABS(x)

Return absolute (unsigned) value. (macro)


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.