1.

Which of the following is the limitation of bitset over vector bool?(a) Space(b) Size(c) Type(d) SpeedThe question was asked in final exam.My question is from Bitset in section Class Hierarchies, Library & Containers of C++

Answer»

The CORRECT option is (b) Size

Easy explanation - BITSET size is static WHEREAS vector size is DYNAMIC therefore the size of a vector can be increased or decreased which is not possible in bitset.



Discussion

No Comment Found

Related InterviewSolutions