Home » C++ Programming » Questions and Answers » Question
  1. In which type of storage location are the vector members stored?
    1. Simple Storage
    2. Contiguous storage locations
    3. Non-contiguous storage locations
    4. Contiguous & Non-contiguous storage locations
    5. None of these
Correct Option: B

Vectors use contiguous storage locations for their elements, which means that their elements can also be accessed using offsets on regular pointers to its elements



Your comments will be displayed only after manual approval.