Swift - Loops
Which of the following is the correct syntax for a safe Swift
for-in loop over an array named numbers?for-in loop over an array named numbers?for variable in collection { } syntax for safe iteration.for number in numbers { print(number) } matches correct syntax; A uses invalid 'loop', B is C-style (not Swift), C uses invalid 'to' keyword.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions