Which STL container behaves like a dynamically resizable array?
-
A
vector
Correct answer
-
B
map
-
C
set
-
D
stack
12 views
Explanation
vector stores elements contiguously and grows automatically as needed.
Reference
Asked in: NTS, PPSC IT, Campus Interviews
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ