The bitwise logical operators work with the bits. The
bitwise logical operator are the binary operators i.e. it works with two
operands. These operands are integer type.
The bitwise logical operators work with operand bit by bit,
starting from the least significant bit. The precedence of bitwise logical
operator is lower than the relational operator so additional parentheses are
necessary.
There are 3 types of
bitwise logical operators:
- Bitwise AND (&) operator.
- Bitwise OR (|) operator.
- Bitwise Ex-OR (^) operator.
No comments:
Post a Comment