Previous: 5.7 Shifting operations Up: 5. Expressions Next: 5.9 Comparisons


5.8 Binary bit-wise operations

Each of the three bitwise operations has a different priority level:

Download entire grammar as text.

The & operator yields the bitwise AND of its arguments, which must be plain or long integers. The arguments are converted to a common type.

The ^ operator yields the bitwise XOR (exclusive OR) of its arguments, which must be plain or long integers. The arguments are converted to a common type.

The | operator yields the bitwise (inclusive) OR of its arguments, which must be plain or long integers. The arguments are converted to a common type.


Previous: 5.7 Shifting operations Up: 5. Expressions Next: 5.9 Comparisons
Release 2.2.3, documentation updated on 30 May 2003.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /