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 :
to return immediately to the caller of the currently executed code
to return some value to the caller of the currently executed code.
Liked By
Write Answer
What is the use of return statement?
Join MindStick Community
You have need login or register for voting of answers or question.
Sumit Kesarwani
28-Jan-2014The 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 :