Vidyalelo
C++ Programming · Q450

C++ miscellaneous

Programming · C++ Programming · question 450

Q450

What will be the output of the following C++ code? #include #include using namespace std; int main() bitset b1(20); cout<<b1.test(1); cout<<b1.test(2);

A.
01
Answer
B.
00
C.
10
D.
11

Answer: Option A

Solution

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