Which of the following options return the number of elements in std::vector?
Explanation
Container std::vector doesn't have member function std::vector::length.
Container std::vector doesn't have member function std::vector::count.
std::vector::capacity returns the amount of memory useed.
std::vector::size returns the number of elements in the container.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes