Return Statement Usage
- Posted by Alan Tu <ATU5713 at COMPUSERVE.COM> Jun 23, 1998
- 590 views
I have two questions about the return statement. 1. If I have a main program, and I call a global procedure within an include file, do I need to put return at the end of the global procedure?= 2. In the same set of procedures, in the global procedure, which is in t= he include file, I call a local procedure that is in the same include file. = Do I need to put return at the end of the local procedure to continue wit= h the main procedur? In general, under what circumstances should one use return at the end of = a procedure to keep the program from "wandering off"? --Alan =