Multiple choice

Which of the following statements is/are correct? A. The size of a vector can grow or shrink. B. The size of an array can grow or shrink.

  1. Only A

  2. Only B

  3. Both A and B

  4. Neither A nor B

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The size of an array cannot grow or shrink but the size of a vector can grow or shrink.