Assignment Statement
Order of evaluation: right to left.
- Example: a = z = 123;
- 123 is assigned to z
- The assignment (z = 123) returns the value 123, which is assigned to a.
An assignment statement has a ‘value’. For example, ‘count = 12’; returns the value 12, besides assigning 12 to count.