R

Ravina • 3.96K Points
Extraordinary

Q. Which method is used to resize a vector?

  • (A) resize()
  • (B) adjust_size()
  • (C) extend()
  • (D) reallocate()
  • Correct Answer - Option(A)
  • Views: 20
  • Filed under category Rust
  • Hashtags:

Explanation by: Ravina

`resize()` is used to change the size of a vector.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.