What is the use of return statement?
Ask by Sumit Kesarwani
Updated 15 Sep 2020
The return statement is associated with procedures (methods or functions). On executing the return statement, the system passes the control from the called procedure to the calling procedure.
This return statement is used for two purposes :