What will be the output of the following C++ code?
#include <iostream>
#include <bitset>
using namespace std;
int main()
{
bitset<8> b1(15);
cout<<b1;
}
#include <iostream>
#include <bitset>
using namespace std;
int main()
{
bitset<8> b1(15);
cout<<b1;
}A. 00001111
B. 1111
C. 11110000
D. 0000000000001111
Answer: Option A

Join The Discussion