1.7 KiB
1.7 KiB
[stmt.block]
8 Statements [stmt]
8.4 Compound statement or block [stmt.block]
A compound statement (also known as a block) groups a sequence of statements into a single statement.
compound-statement:
{ statement-seqopt label-seqopt }
statement-seq:
statement statement-seqopt
A label at the end of a compound-statement is treated as if it were followed by a null statement.
[Note 1:
A compound statement defines a block scope ([basic.scope]).
A declaration is a statement ([stmt.dcl]).
â end note]