Question: When do you need to explicitly state the return type in a function definition?

  1. when the function has no side effects
  2. when the function returns a Unit type
  3. when the function is recursive
  4. when the function has side effects

Answer: The correct answer of the above question is Option C:when the function is recursive