1.

Which is the correct syntax of constructing a bitset?(a) bitset b;(b) bitset b(12);(c) bitset b(string(“1100”));(d) all of the mentionedI had been asked this question in final exam.I'd like to ask this question from Bitset in chapter Class Hierarchies, Library & Containers of C++

Answer»

Correct answer is (d) all of the MENTIONED

Best explanation: All of the above mentioned are correct SYNTAX of CONSTRUCTING a BITSET. However each has DIFFERENT way of interpretation.



Discussion

No Comment Found

Related InterviewSolutions