Version ebook / Retour
Bitwise operators are used for comparing numbers based on their binary digits. These operators are listed in Table B-4.
The tilde (~) may be used to invert the bits of a value.
~
Operator
Use
|
OR
^
XOR
&
AND
<<
Shift bits to left
>>
Shift bits to right
NOT or invert bits