The return statement causes the program
to immediately return from a function without executing any remaining
code in the function. The return statement has two
forms: return; and return (value);.
Table 1-13: return statement
Format
Meaning
func_name(arguments)
{
do this;
if (condition)
return (variable);
}
If this return statement
is executed, then the “do that” statement
is not executed. The program returns the value in the variable,
and continues executing with the statement after the function call.