What is the use of return statement?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Zurich, Lives in Zurich, Switzerland.
If a function has the return type void, the return statement can be used without a value, in which case the program just breaks out of the current function and returns to the calling one. In Pascal there is no return statement. (However, in newer Pascals, the Exit(exp); can be used to return a value immediately.
2023-05-10 14:09:53
评论(499)
Helpful(122)
Helpful
Helpful(2)

Benjamin Brown
QuesHub.com delivers expert answers and knowledge to you.
If a function has the return type void, the return statement can be used without a value, in which case the program just breaks out of the current function and returns to the calling one. In Pascal there is no return statement. (However, in newer Pascals, the Exit(exp); can be used to return a value immediately.