Q:

Explain the difference between a vector’s capacity and its size

0

Explain the difference between a vector’s capacity and its size.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

The `capacity` of a vector is how many elements the vector **can hold**.

The `size` of a vector is how many elements the vector **already holds**.

 

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now