Sail E0 Webinar
Question

Find the odd one out:


Options:
A .  std::vector
B .  std::vector short>
C .  std::vector
D .  std::vector
Answer: Option D

std::vector<bool> is a specialized version of vector, which is used for elements of type 

bool and optimizes for space. It behaves like the unspecialized version of vector and the 

storage is not necessarily an array of bool values, but the library implementation may 

optimize storage so that each value is stored in a single bit.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

More Questions on This Topic :

Latest Videos

Latest Test Papers