A

Admin • 828.03K Points
Coach

Q. What does `Some(3).unwrap()` return?

  • (A) None
  • (B) 3
  • (C) Error
  • (D) true
  • Correct Answer - Option(B)
  • Views: 10
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`unwrap()` returns the value if the `Option` is `Some`, else panics.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.