24.9 Compound Statements

Compound statements have the form

{ stmt... }

where stmt… is a list of statements, which can be themselves compound statements. Compound statements are primarily used to sequence instructions like:

{
  do_a;
  do_b;
  do_c;
}

A compound statement introduces a new lexical scope. Declarations in the compound statements are local to that statement.

Finally, compound statements can be empty: { }.