The commonly used assignment operator is = Assignment expressions that make use of this operator are written in the form
Identifier = expression
Here identifier represents a variable and expression represents a constant, a variable or a more complex expression e.g. Here are some typical assignment expressions that make use of the = operator
a = 3
x = y
sum = a+b
area = length * width.
Identifier = expression
Here identifier represents a variable and expression represents a constant, a variable or a more complex expression e.g. Here are some typical assignment expressions that make use of the = operator
a = 3
x = y
sum = a+b
area = length * width.