When an exception occurs

Report a typo

Choose the piece of code that will make the following program throw an exception.

Fill in the gaps with the relevant elements
fun main() {
    val characters = charArrayOf('a', 'b', 'c')
    val character = 
}
characters[0]characters[3]characters[1]characters[2]

Create a free account to access the full topic