Kotlin - Functions
Which of the following is the correct syntax to declare a function
add that takes two Int parameters and returns their sum as an Int?add that takes two Int parameters and returns their sum as an Int?name: Type, so fun add(a Int, b Int): Int { return a + b } is incorrect because it misses colons.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions