Fundamentals - [C'Language]

♠ Posted by Unknown in at 10:07

Commonly used printf() function format codes:

Code

Meaning

%c

Print a single character

%d

Print a decimal integer

%e

Print a floating point value in exponent form

%f

Print a floating point value without exponent

%g

Print a floating point value either e-type or f-typ3 depending on value

%i

Print a signed decimal integer

%o

Print an octal integer, without leading zero

%s

Print a string

%u

Print an unsigned decimal integer

%x

Print a hexadecimal integer, without leading Ox

0 comments:

Post a Comment