R

Ravina • 3.59K Points
Extraordinary

Q. What is the output of `print(type(of: [1, 2, 3]))`?

  • (A) Array
  • (B) Int[]
  • (C) Array<Int>
  • (D) List<Int>
  • Correct Answer - Option(C)
  • Views: 9
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Ravina
Swift's type system will show `[1, 2, 3]` as `Array<Int>`.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.