Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Que se passe-t-il si on exécute le code suivant ?
val nombres = arrayOf(10, 20, 30)println(nombres[3])
val nombres = arrayOf(10, 20, 30)
println(nombres[3])
Le programme affiche 30.
30
Le programme ne compile pas.
Le programme affiche 10.
10
Une exception ArrayIndexOutOfBoundsException est levée.
ArrayIndexOutOfBoundsException
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!