Null Statement

The null statement has the form:

;

A null statement is useful to carry a label just before the } of a compound statement, for example:

switch (...) { ... case 1: ; }

or to supply a null body to a looping statement such as while, for example:

while (1) ; /* an infinite waiting loop */

[BACK] [HOME] [UP] [HELP]