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

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.
answered
User Japem
by
7.6k points

No related questions found

Welcome to Qamnty — a place to ask, share, and grow together. Join our community and get real answers from real people.