The Utility of the AND Bitwise Operator
Get introduced to the utility of & operator.
We'll cover the following...
We'll cover the following...
The AND & operator is used to:
- Check whether a bit is on or off
- Switch off a particular bit
Check whether a bit is on or off
See the code given below!
To check whether the bit is on or off, we need to, first, select the appropriate mask value. In the mask value, only the bit at that particular place should be 1. Since we want to check whether the ...