Assignment Operators
The equal sign = is also considered an operator and the construct
x = y
is also an expression.
Every expression has a value. The value of x = y is the value assigned to the variable x.
A semicolon turns an expression into a statement. E.g.,
x = y;
Previous slide
Next slide
Back to first slide
View graphic version