Vidyalelo
C++ Programming · Q963

C++ miscellaneous

Programming · C++ Programming · question 963

Q963

Which of the following is corect way of constructing bitset using binary string?

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

Answer: Option C

Solution

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