Operators which are used to perform manipulation at bit-level.The programming languages are Byte oriented whereas the hardware is bit oriented.Therefore, being able to operate on bit level can be very important in programming,especially when the program directly interact with the hardware.
Bitwise operations perform boolean logic on pairs of individual bits within two or more numerical values. A bitwise "and" operation on the values 3 (binary 0011)
and 5 (binary 0101)
produces a result of 1 (0001)
, whereas bitwise "or" produces a result of 7 (0111)
.