6.3. Bit Operators

These are bit operators that works with integer, two are binary one is unary. The result is always integer.

OperatorDatatypeDescription
&integerBits of the result number are product of the bits of the operands (bit and).
|integerBits of the result number are count of the bits of the operands (bit or).
~integerBits of the result number are reverted bits of operand (bit not).
<<integerBits of the result number are left shifted bits of the operands (bit shift left).
>>integerBits of the result number are right shifted bits of the operands (bit shift right).