If a function has the return type void, the return statement can be used without a value, in which case the program just breaks out of the current function and returns to the
calling one. In Pascal there is no return statement. (However, in newer Pascals, the Exit(
exp); can be used to return a value immediately.
read more >>