Explanation: C++ has bool as a fundamental data type. 2. Find the odd one out:
A. std::vector<int>
B. std::vector<short>
C. std::vector<long>
D. std::vector<bool>
Answer:A
Explanation: C++ has bool as a fundamental data type. 2. Find the odd one out:
A. std::vector<int> B. std::vector<short> C. std::vector<long> D. std::vector<bool>
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. 3. What is the value of the bool?