cppforever.com

Expression

A C++ expression is any valid combination of operands and operators that produces a value.

Key points:

  1. An expression is not required to have an operator.
  2. Even a single operand is an expression, because it yields a value.

Examples:

Rule of thumb:

If it produces a value, it is an expression.

Related: