QuesHub > 语句 > 函数 > 卡尔 > ASK DETAIL

What is the use of return statement?

Skylar Gonzales | 2023-05-05 14:09:53 | page views:1058
I'll answer
Earn 20 gold coins for an accepted answer.20 Earn 20 gold coins for an accepted answer.
40more

Harper Allen

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

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.
ask:3,asku:1,askr:137,askz:21,askd:152,RedisW:0askR:3,askD:0 mz:hit,askU:0,askT:0askA:4