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
int a = 1;
a += 1;
a *= a;Last updated