1.

What is the output of this program?
 #include <iostream>
#include <string>
#include <bitset>
using namespace std;
int main ()
{
string Str;
bitset<5> BitsetData;
BitsetData.set();
Str = BitsetData.to_string<char, char_traits<char>,
allocator<char> >();
cout << Str ;
return 0;
}

A. 1
B. 11
C. 111
D. 1111
E. 11111
Answer» F.


Discussion

No Comment Found

Related MCQs