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));

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