1.

Which of the following is corect way of constructing bitset using integer number?(a) bitset b;(b) bitset b(12);(c) bitset b(string(“1100”));(d) bitset b(float(12));I had been asked this question in semester exam.Asked question is from Bitset in division Class Hierarchies, Library & Containers of C++

Answer»

The correct choice is (b) bitset b(12);

BEST explanation: The correct way of constructing bitset using integer NUMBER is as FOLLOWS:

bitset b(integer_number);



Discussion

No Comment Found

Related InterviewSolutions