A

Admin • 833K Points
Coach

Q. How do you define a tuple with named elements?

  • (A) let person = ("John", 25)
  • (B) let person = [name: "John", age: 25]
  • (C) let person = (name: "John", age: 25)
  • (D) let person = person(name: "John", age: 25)
  • Correct Answer - Option(C)
  • Views: 23
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin

This is the correct syntax to create a named-element tuple.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.