6.8.4.1 The if statement

Previous Table of Contents "New C Standard" commentary

1743 The controlling expression of an if statement shall have scalar type.

1744 In both forms, the first substatement is executed if the expression compares unequal to 0.

1745 In the else form, the second substatement is executed if the expression compares equal to 0.

1746 If the first substatement is reached via a label, the second substatement is not executed.

1747 An else is associated with the lexically nearest preceding if that is allowed by the syntax.

Next

Created at: 2008-01-30 02:39:44 The text from WG14/N1256 is copyright © ISO