Bitwise Operators in CPP
Bitwise operators manipulate individual bits of integers at the binary level. They are blazingly fast because they map directly to CPU instructions.
OperatorExample
& (AND)a & b
(OR)ab
^ (XOR)a ^ b
~ (NOT)~a
<< (LEFT SHIFT)a << n
\>> (RIG...
bitwise-operators-in-cpp.hashnode.dev1 min read