S

Shyam Dubey • 3.70K Points
Extraordinary

Q. Which method reverses a vector in place?

  • (A) rev()
  • (B) reverse()
  • (C) flip()
  • (D) invert()
  • Correct Answer - Option(B)
  • Views: 13
  • Filed under category Rust
  • Hashtags:

Explanation by: Shyam Dubey
reverse() reverses the vector in-place.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.