Which is the correct syntax of constructing a bitset?

a) bitset<size> b;
b) bitset<size> b(12);
c) bitset<size> b(string(“1100”));
d) all of the mentioned

1 thought on “Which is the correct syntax of constructing a bitset?”

  1. d
    Explanation: All of the above mentioned are correct syntax of constructing a bitset. However each has different way of interpretation.

Leave a Comment