~ | bitwise complement (one's complement) | inverts all
bits |
<< | left shift |
move to the left the bits in the first operand,
with zeros carried in on the right, by the number of places given by
the second operand |
>> | right shift |
move to the right the bits in the first operand,
with zeros carried in on the left, by the number of places given by
the second operand |
& | bitwise AND | ANDs each bit in the first operand with the corresponding bit in the
second operand |
| | bitwise OR | ORs each bit in the first operand with the corresponding bit in the
second operand |
^ | bitwise exclusive OR | XORs each bit in the first operand with the corresponding bit
in the second operand |