A

Admin • 833K Points
Coach

Q. What is the purpose of `fatalError()` in Swift?

  • (A) To handle errors
  • (B) To throw exceptions
  • (C) To crash the program intentionally
  • (D) To log output
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category Swift (iOs)
  • Hashtags:

Explanation by: Admin

`fatalError()` is used to indicate a condition that should never occur.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.