Assignement Operators
An assignment operation assigns the value of the right-hand operand to the storage location named by the left-hand operand.
Symbol
Name
=
Simple assignement operator
*
/
%
Multiplicative assignement operators
+
-
Additive assignement operators
Syntax
assignment-operator
: =
*=
/=
%=
+=
-=
Example
Last updated