The size is the number of elements actually stored in the vector, while capacity is the maximum number of elements it can store at a given instance of time.
Liked By
Write Answer
What is the difference between the size and capacity of a Vector?
Join MindStick Community
You have need login or register for voting of answers or question.
Amit Singh
05-May-2011