R

Ravina • 3.96K Points
Extraordinary

Q. What is the default behavior of panic! in Rust?

  • (A) Logs error and halts program
  • (B) Returns error
  • (C) Restarts system
  • (D) Ignores error
  • Correct Answer - Option(A)
  • Views: 30
  • Filed under category Rust
  • Hashtags:

Explanation by: Ravina

panic! macro unwinds the stack and terminates the program by default.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.