Expressions and operators

Expressions are sequences of operators, operands, and punctuators that specify a computation. The evaluation of expressions is based on the operators that the expressions contain and the context in which they are used. An expression can result in a value and can produce side effects. A side effect is a change in the state of the execution environment.

Operator precedence and associativity provides tables listing the precedence of all the operators described in the various sections listed above.

C++ only C++ operators can be defined to behave differently when applied to operands of class type. This is called operator overloading, and is described in Overloading operators (C++ only).