Assignment Operators Associate from Right to Left
The expression
x = y = z
means
x = (y = z)
If z is 10, the value 10 will be assigned to y and in turn assigned to x.
Previous slide
Next slide
Back to first slide
View graphic version