Assignment Operator is used to assign the value of right operand to left operand,it is denoted by "=". When an assignment operator encounter in an expression the compiler process expression on right hand side of the assignment operator and then assign the result to the variable on left hand side.It is Binary in nature.
Possibilities for an assignment operator are as follow:-
Examples-:
(a-) variable=constant
x=a;
(b-) variable=variable
(b-) variable=variable
x=y;
(c-) variable=expression
x= y+z;
share blogs to your friends...
ReplyDelete