Bitwise Operators

Bitwise operators perform manipulations of data at bit level. These operators also perform shifting of bits from right to left. Bitwise operators are not applied to float or double.


Example:

a = 0001000
b= 2
a << b = 0100000
a >> b = 0000010