What are the jobs of a return statement in a program?
What are the jobs of a return statement in a program?
4 views
1 Answers
In the case of a sub function a return statement helps to terminate the sub function and return back to the main function or called function. But in the case of a main function it terminates the program.
4 views
Answered