About assignment operators

The assignment operators take two operands and assign a value to one operand based on the value of the other operand. All of the operators in this table have equal precedence:

Operator

Operation performed

=

Assignment

*=

Multiplication assignment

/=

Division assignment

%=

Modulo assignment

+=

Addition assignment

-=

Subtraction assignment

<<=

Bitwise left shift assignment

>>=

Bitwise right shift assignment

>>>=

Bitwise unsigned right shift assignment

&=

Bitwise AND assignment

^=

Bitwise XOR assignment

|=

Bitwise OR assignment

For information on using assignment operators, see Using assignment operators.