Which of the following is corect way of constructing bitset using binary string?
(a) bitset<size> b;
(b) bitset<size> b(12);
(c) bitset<size> b(string(“1100”));
(d) bitset<size> b(float(12));
This question was posed to me in an online quiz.
This intriguing question comes from Bitset in chapter Class Hierarchies, Library & Containers of C++