×
☰ Menu

Bitwise Operators

C supports special operators known as bitwise operators for manipulation of data at bit level.

 

Operator

Description

Example

&

Bitwise AND

A & B

|

Bitwise OR

A | B

^

Bitwise Ex-OR

A ^ B

<< 

Shift left

>> A

>> 

Shift right

<< A