Computer Science, asked by AryanYadav7007868418, 6 months ago

What is the role of a return statement in a method​

Answers

Answered by ananyaneelala
8

Answer:

A return statement ends the execution of a function, and returns control to the calling function. Execution resumes in the calling function at the point immediately following the call. A return statement can return a value to the calling function.

Answered by jishanshaikh
3

A return statement ends the execution of a function, and returns control to the calling function. Execution resumes in the calling function at the point immediately following the call. A return statement can return a value to the calling function.

Similar questions