R

Ravina • 3.96K Points
Extraordinary

Q. Which method removes the last element of a vector?

  • (A) remove()
  • (B) delete()
  • (C) pop()
  • (D) truncate()
  • Correct Answer - Option(C)
  • Views: 12
  • Filed under category Rust
  • Hashtags:

Explanation by: Ravina
`pop()` removes and returns the last element of a vector.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.