1.

Pick the correct statement.(a) Vectors have dynamic size whereas Array classes have a static size(b) Both vectors and Array classes have a dynamic size(c) Both vectors and Array classes have a static size(d) Vectors have static size whereas Array classes have a dynamic size

Answer» The correct choice is (a) Vectors have dynamic size whereas Array classes have a static size

Explanation: Vectors are implemented in a way so that it can handle any number of elements at a time means the size of a vector can vary, whereas Array classes have fixed size.


Discussion

No Comment Found

Related InterviewSolutions