return
Last updated
Was this helpful?
Last updated
Was this helpful?
The return
statement is used to exit a subroutine at an arbitrary point and return to the calling location.
return
A will automatically return to the location it was called from when the end of its body is reached. However, it may be desirable to explicitly exit the subroutine at some other point in which case the return
statement is used.