adspace


What is the size of a vector?

Answer Posted / Abhay Murari

The size of a vector in C++ refers to its capacity (the maximum number of elements it can currently hold) or its size (the number of elements currently stored). By default, when you create a vector without specifying the initial size, it starts with a small buffer and automatically grows as more elements are added. The specific values depend on the implementation of the C++ Standard Library.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can union be self referenced?

1279


What is the latest version on c++?

1217


What character terminates all character array strings a) b) . c) END

1403


daily Routine of father

1492


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1172