Type mismatch

Report a typo

Select one case where the type mismatch error occurs.

a)

var age = 30
age = 31

b)

var age: String = "30"
age = "31"

c)

var age: Int = 30
age = "31"

d)

var age: Int = 40
age = 41
Select one option from the list
___

Create a free account to access the full topic