S

Shyam Dubey • 3.70K Points
Extraordinary

Q. What happens when a program uses an invalid reference?

  • (A) Compile-time error
  • (B) Silent failure
  • (C) Runtime warning
  • (D) Undefined behavior
  • Correct Answer - Option(A)
  • Views: 8
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
Rust's borrow checker will catch invalid references at compile time.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.