A C++ expression is any valid combination of operands and operators that produces a value.
Key points:
Examples:
Single operand:
5 (constant)x (variable)func() (function call)Operand + operator:
a + bx * 10i++More complex:
x = y + 3(a && b) || cRule of thumb:
If it produces a value, it is an expression.
Related: