Quiz · Errors · lesson 7 of 7
Quiz — defer
What does the program print (lines separated by spaces)?
func load() -> Int {
defer { print("A") }
defer { print("B") }
print("body")
return 42
}
print(load())What does the program print (lines separated by spaces)?
func load() -> Int {
defer { print("A") }
defer { print("B") }
print("body")
return 42
}
print(load())