Variable = Expression ; |
|
Example:
int x; short s; x = 62736215; s = x; // You will have truncation errors // C++ allows it !!! // Other more "caring" languages like Java does not... |
Variable1 = Variable2 = ... = Expression ; |
The associativity of the = operator is right-to-left !!!
a = b = c = 4; |
The result is: the value of expression is assigned to all variables...