R

Ravina • 3.96K Points
Extraordinary

Q. What is true about closures in Swift?

  • (A) They are used only inside loops
  • (B) They are reference types
  • (C) They cannot capture variables
  • (D) They don’t support return values
  • Correct Answer - Option(B)
  • Views: 17
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Ravina
Closures are reference types and can capture and store references to variables from the surrounding context.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.