 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
|
Value-returning
functions
|
|
|
|
|
The
function call is used within an expression; it does not
|
|
|
|
appear
as a separate statement.
|
|
|
|
|
The
function computes a value (result) that is then
|
|
|
|
available
for use in the expression.
|
|
|
|
|
The
function returns exactly one result no more, no less.
|
|
|
The
argument to a value-returning function can be any
|
|
|
|
expression
of the appropriate type.
|
|
|
|
The
compiler applies type coercion if the types dont match.
|
|