A

Admin • 833K Points
Coach

Q. Which Swift keyword is used to indicate a throwing function?

  • (A) throw
  • (B) throws
  • (C) try
  • (D) catch
  • Correct Answer - Option(B)
  • Views: 24
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin

The `throws` keyword is added to the function declaration to indicate it can throw errors.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.