Assignment operator(=):
Assigns value to a variable, and has right-to-left associative.
int a;
a=15; // assigns
value 15 to the variable a.
int a=2,b=4,sum=0;
sum=a+b;
then sum=5.
** ) this expression is also allowed in C language.
a=b=c=13; // right-to-left associative.
No comments:
Post a Comment