+ 1
What is the use of return
4 Answers
+ 4
TheĀ return statement terminates the execution of a function. If a function has the return type void, this statement can be used without a value, otherwise it must return a value of the return type (like int) the function has
+ 2
You just write "return" and what exactly has to return the function (if it returns something). but remember that after the "return" code is not executed
+ 1
but you are already taking a specific language. in the python, for example, any type of return
0
k thanks