24.5k views
3 votes
Choose the _______ container for the best random-access performance in a container that can grow.

User Yarun Can
by
7.5k points

1 Answer

0 votes
vector

A vector is an abstracted array. It allows the user to access elements through an index like an array but can be resized without manually reallocating memory from the heap.
User Japem
by
7.1k points