2.) Assignment - Operator:-
This operator is use to assign the value to operands. It is used to assign a particular value to a variable.
= (Assignment)- Used to assign a value from right side operand to left side operand.
+= (Addition Assignment)- To store the sum of both the operands to the left side operand.
-= (Subtraction Assignment) – To store the difference of both the operands to the left side operand.
*= (Multiplication Assignment) – To store the product of both the operands to the left side operand.
/= (Division Assignment) – To store the division of both the operands to the left side operand.
%= (Remainder Assignment) – To store the remainder of both the operands to the left side operand.
This operator is use to assign the value to operands. It is used to assign a particular value to a variable.
= (Assignment)- Used to assign a value from right side operand to left side operand.
+= (Addition Assignment)- To store the sum of both the operands to the left side operand.
-= (Subtraction Assignment) – To store the difference of both the operands to the left side operand.
*= (Multiplication Assignment) – To store the product of both the operands to the left side operand.
/= (Division Assignment) – To store the division of both the operands to the left side operand.
%= (Remainder Assignment) – To store the remainder of both the operands to the left side operand.