6.8.4 Selection statements

Previous Table of Contents

1728

selection-statement:
                if ( expression ) statement
                if ( expression ) statement else statement
                switch ( expression ) statement

1729 A selection statement selects among a set of statements depending on the value of a controlling expression.

1730 A selection statement is a block whose scope is a strict subset of the scope of its enclosing block.

1731 Each associated substatement is also a block whose scope is a strict subset of the scope of the selection statement.

Next

Created at: 2005-06-29 02:19:03 The text from WG14/N1124 is copyright © ISO