Skip to content
Quiz · Functions · lesson 3 of 9

Quiz — an argument label

What happens when this program is compiled and run?

SWIFT
func double(n: Int) -> Int {
    n * 2
}
print(double(4), terminator: " ")
print(double(n: 3))