A

Admin • 670.22K Points
Coach

Q. What is the type of `let a = 3.14` in Swift?

  • (A) Float
  • (B) Double
  • (C) Int
  • (D) Decimal
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin
By default, floating-point numbers are of type `Double` in Swift.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.