A declaration can appear anywhere inside a compound statement. It affects all statements in the compound statement following the declaration statement.