Google News
logo
CPP - Quiz(MCQ)
In which type of storage location are the vector members stored?
A)
Memory storage locations
B)
Contiguous storage locations
C)
Non-contiguous storage locations
D)
Contiguous & Non-contiguous storage locations

Correct Answer :   Contiguous storage locations


Explanation : 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

Advertisement