Next: Arithmetic operators Up: Expressions and Operators Previous: Expressions and Operators

Assignment Statement

The easiest example of an expression is in the assignment statement. An expression is evaluated, and the result is saved in a variable. A simple example might look like


y = (m * x) + c
This assignment will save the value of the expression in variable y.


January 1995