Beginner
Swift
Q32 / 100
What is the inout parameter keyword?
Correct! Well done.
Incorrect.
The correct answer is B) Allows a function to modify the caller's variable by passing it by reference with &
B
Correct Answer
Allows a function to modify the caller's variable by passing it by reference with &
Explanation
func increment(_ n: inout Int) { n += 1 }; increment(&count) modifies count in place.
Progress
32/100