Question: When do you need to explicitly state the return type in a function definition?
- when the function has no side effects
- when the function returns a Unit type
- when the function is recursive
- when the function has side effects
Answer: The correct answer of the above question is Option C:when the function is recursive