Vidyalelo
C++ Programming · Q660

C++ miscellaneous

Programming · C++ Programming · question 660

Q660

Which of the following is correct about bitset and vector of bools?

A.
Space consumed by bitset is less than vector<bool>
B.
Bitset consume only 1 bit per element
C.
Number of elements in bitset should be known at compile time whereas vector can have a dynamic size
D.
All of the mentioned
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board