Vector Size Function

Placewit
Mar 10, 2022

--

The size function of vectors in c++ to return the number of element present in the vector is:

A) sizeof()

B) capacity()

C) size()

D) None of the above

Solution: C is correct

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.

--

--

Placewit
Placewit

Written by Placewit

Upskilling students for tech placements!

No responses yet