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

Join The Discussion