S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method is used to check if a vector contains an element?

  • (A) has()
  • (B) includes()
  • (C) contains()
  • (D) in()
  • Correct Answer - Option(C)
  • Views: 9
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
contains() checks if the vector contains a specific element.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.