Mixed nullable

Report a typo

What is the output of this snippet:

fun main() {
    val name: String? = null
    val age: Int? = name?.length
    val result: Int? = age?.plus(3)
    print(result)
}
Select one option from the list
___

Create a free account to access the full topic