R

Ravina • 3.96K Points
Extraordinary

Q. What is the type of a Swift closure that takes no parameters and returns nothing?

  • (A) () -> Void
  • (B) Void -> Void
  • (C) () -> ()
  • (D) None -> Void
  • Correct Answer - Option(A)
  • Views: 24
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Ravina
`() -> Void` represents a closure with no parameters and no return value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.