A

Admin • 802.91K Points
Coach

Q. Which of the following is used to define an infinite loop in Swift?

  • (A) while true
  • (B) loop forever
  • (C) do while(true)
  • (D) repeat forever
  • Correct Answer - Option(A)
  • Views: 6
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
`while true` creates an infinite loop that continues until manually broken.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.