Explain in layman’s term why we need to use ‘return’ statement in programming ?

992 views

Explain in layman’s term why we need to use ‘return’ statement in programming ?

In: Technology

6 Answers

Anonymous 0 Comments

If a program calls a subprogram, the program cannot see what the subprogram is doing. Therefore, a return statement is used to get the subprogram to relay a wanted piece of information back to the main program.

You are viewing 1 out of 6 answers, click here to view all answers.