
4
Assignment Operators
The most common assignment operator is =. This operator assigns the value in right side to the left side. For example:
var=5 //5 is assigned to var
a=c; //value of c is assigned to a
5=c; // Error! 5 is a constant.
Operator
Example
Search our library of 42,000+ free ebooks
Popular searches:
Join 2 million readers and get unlimited free ebooks