Assignment Operators
Any arithmetic or binary operator can be concatenated with = to form another assignment operator
a *= b + 1; // same as a = a * (b + 1)
a += 5; // same as a = a + 5;
var op= expr; is equivalent tovar = ((var) op (expr));
Previous slide
Back to first slide
View graphic version