0% found this document useful (0 votes)
68 views1 page

C Format Specifiers

The document details various format specifiers used in C like %c for characters, %d for decimals, %e and %f for floats, %s for strings, and others and also lists common C operators like arithmetic, logical, relational, and bitwise operators.

Uploaded by

local drive
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views1 page

C Format Specifiers

The document details various format specifiers used in C like %c for characters, %d for decimals, %e and %f for floats, %s for strings, and others and also lists common C operators like arithmetic, logical, relational, and bitwise operators.

Uploaded by

local drive
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Format specifiers in C

Format Specifier Meaning

%c Read a Single Character

%d Read a Decimal integer

%e Read a Floating-point number

%f Read a Floating-point number

%g Read a Floating-point number

%h Read a short integer

%i Read a Decimal or hexadecimal or octal number

%o Read an octal number

%p Read a pointer

%s Read a string

%u Read an Unsigned integer

%x Read a hexadecimal number

%n Prints nothing

%% Prints % character

C Operators

Unary Ternary
Binary

Arithmetic Logical Relational Bitwise

You might also like