5.3 Expression Statement

Expression statements cause expressions to be evaluated. No transfer of control or iteration takes place as a result of an expression statement.

Syntax

expression-statement:
expressionopt;

All expressions in an expression statement are evaluated and all side effects are complete before the next statement is executed. The most common expression statements are assignments and function calls. C++ also provides a null statement.