UMBC CMSC201, Computer Science I, Fall 1994
Sections 0101, 0102 and Honors
Expressions
An integer expression can be any of the following:
- An integer constant.
Example: 3
- The value stored in an integer variable.
- The value of a function call that returns an integer.
Example: GetInteger()
- The result of applying an integer operator
on one or more operands.
Example: +, *, % and parentheses
Double expressions, character expressions, string expressions
and Boolean expressions are defined similarly. Each type
has a different set of operators.
Last Modified:
Tue Sep 20 09:20:43 EDT 1994
Richard Chang, chang@gl.umbc.edu