Loading practice questions
What is the default return type of a Kotlin function that does not return anything?
Correct Answer: B — Unit
Explanation:
In Kotlin, functions that do not explicitly return a value have a default return type of Unit, which is similar to void in Java but is a real type in Kotlin.