<What is/are the correct function declaration/decl...
# stackoverflow
u
What is/are the correct function declaration/declarations? (In Kotlin) This problem may have one or more correct answers a. fun printName(name: String) = "My name is " + name b. fun printName(name: String?) = "My name is " + {name?: "John"} c. fun printName(name: String = "John") = "My name is ${name}" d. fun printName(name) = "My name is ${name?: "John"}" e. fun printName(name: String?) = "My name is ${name?: "John"}"