Assignment operators are used to assign the values of variables.
Assignment Operators are:
|
It adds the value of right hand side variable with left hand variable and assigns the resultant value to the left hand side variable. |
|
It subtracts the value of right hand side variable from left hand variable and assigns the resultant value to the left hand side variable. |
|
It multiplies the value of right hand side variable with left hand variable and assigns the resultant value to the left hand side variable. |
|
It divides the value of left hand side variable by the value of right hand side variable and assigns it to the left hand side variable. |
|
It assigns the value of right hand side variable to the left hand side variable. |