Statements define and control what a program does. This chapter describes the syntax and rules for C++ statements: expressions, loops, selection, and control. The statement syntax rules apply recursively, and wherever a statement is called for, you can use (almost) any of the statements in this chapter.
The syntax descriptions in this chapter are informal. See Chapter 12 for a precise BNF grammar.