Expressions

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

An expression statement evaluates the given expression, which can then be assigned to a variable or used as an argument in a function call. Some examples are:

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


Types of Expressions