= |
Assigns the result right of the '=' to the variable
left of the '='. |
+-*/ |
The usual mathematical operators. * and / have a higher priority
than + and -. |
% |
Modulo operator, the integer remainder of a division. |
| |
Bitwise OR, can be used to set certains bits in a variable. |
^ |
Bitwise exclusive OR, can be used to toggle certain bits in a
variable. |
~ |
Bitwise invert, toggles
all bits of a variable. |
& |
Bitwise AND, can be used to reset certains bits in a variable. |
>> |
Bitwise right shift, can be used to divide a positive integer
value by 2. |
<< |
Bitwise left shift, can be used to multiply a positive integer
value by 2. |
() |
Parentheses for defining the priority of mathematical operations. |
+= |
Adds the result right of the operator to the variable
left of the operator. |
-= |
Subtracts the result right of the operator from the variable
left of the operator. |
*= |
Multiplies the variable
left of the operator by the result right of the operator. |
/= |
Divides the variable
left of the operator by the result right of the operator. |
%= |
Sets the variable left of the operator to the remainder
of the division by the result right of the operator. |
|= |
Bitwise OR's the
the result right of the operator and the variable
left of the operator. |
&= |
Bitwise AND's
the the result right of the operator and the variable
left of the operator. |
^= |
Bitwise exclusive
OR's the the result right of the operator and the variable
left of the operator. |
>>= |
Bitwise right shift
the variable left of the operator by the result right of the operator. |
<<= |
Bitwise left
shift the variable left of the operator by the result right of
the operator. |