Expression Statements

An expression statement contains an expression. The expression can be null.

An expression statement has the form:

>>-+------------+--;-------------------------------------------><
   '-expression-'
 
 

An expression statement evaluates expression, then discards the value of the expression. An expression statement without an expression is a null statement.

Examples of Expressions

printf("Account Number: \n");          /* call to the printf    */
marks = dollars * exch_rate;                /* assignment to marks     */
(difference < 0) ? ++losses : ++gain;  /* conditional increment */

Related References

IBM Copyright 2003