+2 votes
in Class 11 by kratos

What is the use of assignment operator? Give an example.

1 Answer

+2 votes
by kratos
 
Best answer

The assignment operator ‘=’ is used for assigning a variable to a value. This operator takes the expression on its right-hand-side and places it into the variable on its left-hand-side.

For example: m = 5;

...