1.

Which of the following is corect way of constructing bitset using binary string?(a) bitset b;(b) bitset b(12);(c) bitset b(string(“1100”));(d) bitset b(float(12));

Answer» Correct option is (c) bitset b(string(“1100”));

Explanation: The correct way of constructing bitset using binary string is as follows:

bitset b(string(“1100”));


Discussion

No Comment Found

Related InterviewSolutions