Saved Bookmarks
| 1. |
Write note on return statement? |
|
Answer» The return Statement 1. The return statement causes your function to exit and returns a value to its caller. The point of functions in general is to take inputs and return something. 2. The return statement is used when a function is ready to return a value to its caller. So, only one return statement is executed at run time even though the function contains multiple return statements. 3. Any number of ‘return’ statements are allowed in a function definition but only one of them is executed at run time. |
|