R

Ravina • 2.56K Points
Extraordinary

Q. Which Swift statement is used to exit a loop early?

  • (A) exit
  • (B) continue
  • (C) return
  • (D) break
  • Correct Answer - Option(D)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Ravina
`break` is used to terminate the loop prematurely in Swift.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.