Logical operators act on the individual bits of ordinal expressions. Logical operators require operands that are of an integer type, and produce an integer type result. The possible logical operators are listed in table (9.4).
|not||Bitwise negation (unary)|
|shl||Bitwise shift to the left|
|shr||Bitwise shift to the right|
|<<||Bitwise shift to the left (same as shl)|
|>>||Bitwise shift to the right (same as shr)|
The following are valid logical expressions: