Multiple choice

Which of the following STL containers is an appropriate choice in a situation where a random access into a container is required?

  1. Vector

  2. List

  3. Both list and vector

  4. Random access is not supported in STL.

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

Vector consists of contiguous memory location and is the appropriate choice.