You have the following function:
fun sum(a: Int = 1, b: Int = 2, c: Int = 3, d: Int = 4) = a + b + c + d
What is the output of the following operation?
println(sum(5, b = 3, d = 2))You have the following function:
fun sum(a: Int = 1, b: Int = 2, c: Int = 3, d: Int = 4) = a + b + c + d
What is the output of the following operation?
println(sum(5, b = 3, d = 2))Create a free account to access the full topic