Q.

If a function doesn’t have a return statement, which of the following does the function return?

A. int
B. null
C. none
D. an exception is thrown without the return statement
Answer» C. none
Explanation: a function can exist without a return statement and returns none if the function doesn’t have a return statement.
2.9k
0
Do you find this helpful?
11

Discussion

No comments yet