Slide 1 / 16
Expressions — a quick recap
An expression is any combination of variables, constants, function calls, and operators that produces a value.
All expressions have a type — int, double, bool, etc. That type determines what operations are valid.
Examples:
42→ int3.14→ double'A'→ charx + y * 2→ depends on types of x and yx > 0→ bool