Skip to content
Quiz · Errors · lesson 7 of 7

Quiz — defer

What does the program print (lines separated by spaces)?

SWIFT
func load() -> Int {
    defer { print("A") }
    defer { print("B") }
    print("body")
    return 42
}

print(load())