|Home | Tutorial | Classes | Functions | QSA Workbench | Language | Qt API | QSA Articles Qt Script for Applications

[Prev: Comparison Operators] [Home] [Next: Special Operators]

Bit-wise operators

& operator

operand1 & operand2

Returns the result of a bit-wise AND on the operands (operand1 and operand2).

^ operator

operand1 ^ operand2

Returns the result of a bit-wise XOR on the operands (operand1 and operand2).

| operator

operand1 | operand2

Returns the result of a bit-wise OR on the operands (operand1 and operand2).

~ operator

~ operand

Returns the bit-wise NOT of the operand.

<< operator

operand1 << operand2

Returns the result of a bit-wise left shift of operand1 by the number of bits specified by operand2. Zeros are shifted in from the right.

>> operator

operand1 >> operand2

Returns the result of a bit-wise (sign propagating) right shift of operand1 by the number of bits specified by operand2.

>>> operator

operand1 >>> operand2

Returns the result of a bit-wise (zero filling) right shift of operand1 by the number of bits specified by operand2. Zeros are shifted in from the left.

[Prev: Comparison Operators] [Home] [Next: Special Operators]


Copyright © 2001-2006 TrolltechTrademarks
QSA version 1.1.5