Vidyalelo
C++ Programming · Q742

C++ miscellaneous

Programming · C++ Programming · question 742

Q742

Which of the following is corect way of constructing bitset using integer number?

A.
bitset<size> b;
B.
bitset<size> b(12);
Answer
C.
bitset<size> b(string("1100"));
D.
bitset<size> b(float(12));

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board