Boolean's :: Discussion


2.Find the odd one out?
A.std::vector
B.std::vector
C.std::vector
D.std::vector
Answer:  Option  A
Explanation:

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.

Tutorial Link:
Published by:

Comments are not available

Post your comments here:

Optional

Quick Links

GAT Subject



   Computer Science    English Mcqs    Agriculture    

Engineering



   Computer Science    Civil Engineering    

Technical



   Networking    Electronics    Database    

Past Papers



   Model Papers    FPSC Papers