Description
The basic assignment operator is equal (=
), which assigns the value of its right operand to its left operand. That is, x = y
assigns the value of y
to x
. The other assignment operators are usually shorthand for standard operations, as shown in the following definitions and examples. 