a) Vector increases its capacity one by one

b) Vector doubles its capacity after it is full

c) Vector increases its capacity by half of its previous size

d) Vector increases its capacity by a constant factor

### 1 thought on “How the size of a vector increases once it is full?”

### Leave a Comment

You must be logged in to post a comment.

b

Explanation: Once the vector is full i.e. number of elements in the vector becomes equal to the capacity of the vector then vector doubles its capacity i.e. if previous capacity was 2 then new capacity becomes 2 * 2 = 4 or 2 + 2 = 4.