Kotlin - Functions
What will be the output of this Kotlin code?
fun greet(name: String): String = "Hi, $name!"
fun main() {
println(greet("Anna"))
}fun greet(name: String): String = "Hi, $name!"
fun main() {
println(greet("Anna"))
}println.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions