Q244
Which is a valid function declaration in Kotlin?
A.
fun sum(a: Int, b: Int): Int
AnswerB.
int sum(a: Int, b: Int)
C.
int sum(int a, int b)
D.
function sum(a: Int, b: Int): Int
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board