Node:Bitwise operators, Next:Shift operations, Previous:Machine-level operators, Up:Machine-level operators
C provides the following operators for handling bit patterns:
<<
>>
|
^
&
~
<<=
>>=
|=
^=
&=
The meaning and syntax of these operators is given below.
Don't confuse bitwise operators (such as bitwise AND, &
) with
logical operators (such as logical AND, &&
). Bitwise operators
operate on each bit in the operand individually.