Swift - Optionals
Identify the error in the following Swift code using multiple optional binding:
let a: Int? = 3
let b: Int? = 4
if let x = a let y = b {
print(x + y)
}Identify the error in the following Swift code using multiple optional binding:
let a: Int? = 3
let b: Int? = 4
if let x = a let y = b {
print(x + y)
}if let statement.let x = a and let y = b, causing a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions