A

Admin • 828.03K Points
Coach

Q. What does the `match` keyword do in Rust?

  • (A) It checks string equality
  • (B) It is used for pattern matching
  • (C) It creates loops
  • (D) It assigns values
  • Correct Answer - Option(B)
  • Views: 36
  • Filed under category Rust
  • Hashtags:

Explanation by: Admin
`match` is used for pattern matching in Rust, similar to switch in other languages.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.