An assignment operation assigns the value of the right-hand operand to the storage location named by the left-hand operand.
=
Simple assignement operator
* / %
*
/
%
Multiplicative assignement operators
+ -
+
-
Additive assignement operators
assignment-operator: = *= /= %= += -=
assignment-operator
*=
/=
%=
+=
-=
int a = 1; a += 1; a *= a;
Last updated 3 years ago