Q233
Which is the correct declaration of an integer array with a size of 5?
A.
val arrs[5]: Int
B.
val arrs = IntArray(5)
AnswerC.
val arrs: Int[5]
D.
val arrs = Array<Int>(5)
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board