Electrical
and Computer Engineering
1 of 24
UAH
CPE 112
Value-Returning Functions
•A call to a value-returning function is part of an expression.
•A value-returning function is used when there is only one result returned by a function and that result is to be used directly in an expression.
•A value-returning
function returns one value, not through a
parameter but by means of a return statement.