A

Admin • 828.03K Points
Coach

Q. What does `panic!()` do?

  • (A) Compiles with warning
  • (B) Raises a runtime error and stops the program
  • (C) Prints to stderr only
  • (D) Continues silently
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`panic!()` causes the program to crash and unwind the stack.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.