Bitwise operators
there are four operators that allow you to manipulate single bits of data. They are called bitwise operators.
Here are all of them:
& (ampersand) - bitwise conjunction;
| (bar) - bitwise disjunction;
~ (tilde) - bitwise negation;
^ (caret) - bitwise exclusive or (xor).
Last updated