There are different Assignment operators in c these are given in following table
| Operator | Description | Example |
|---|---|---|
| = | assigns values from right side operands to left side operand | a=b |
| += | adds right operand to the left operand and assign the resulted value to left | a=a+b |
| -= | subtracts right operand from the left operand and assign the resulted value to left operand | a=a-b |
| *= | multiply left operand with the right operand and assign the resulted value to left operand | a=a*b |
| /= | divides left operand with the right operand and assign the result to left operand | a=a/b |
| %= | calculate modulus using two operands and assign the result to left operand | a=a%b |