A function with a return type other than void must contain at least one return statement with the syntax
return expression;
where expression must evaluate to a type that is compatible with the function's return type. The value of expression is the value returned by the function.

If the function is of type void, a return statement without an expression can be used to return from the function call.

Index Copyright © 2005 CadSoft Computer GmbH