A

Admin • 828.03K Points
Coach

Q. What is `Option<T>` used for in Rust?

  • (A) To perform looping
  • (B) To handle file operations
  • (C) To express a value that may or may not be present
  • (D) To create classes
  • Correct Answer - Option(C)
  • Views: 7
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`Option<T>` is an enum used to represent an optional value.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.