What is the use of return statement?

Benjamin Brooks | 2023-05-05 14:09:57 | page views:1079
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Ethan Gonzales

Works at the International Atomic Energy Agency, Lives in Vienna, Austria.
The return statement terminates 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 also return a value to the calling function. See Return Type for more information.
2023-05-14 14:09:57

Felix Davis

QuesHub.com delivers expert answers and knowledge to you.
The return statement terminates 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 also return a value to the calling function. See Return Type for more information.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4