Kotlin - Functions
Given the function below, how can you call it by passing an existing IntArray named numbers?
fun printNumbers(vararg nums: Int) {
for (num in nums) print("$num ")
}Given the function below, how can you call it by passing an existing IntArray named numbers?
fun printNumbers(vararg nums: Int) {
for (num in nums) print("$num ")
}* before the array.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions