#include &lt;iostream&gt;    #include &lt;string&gt;    #include &lt;bitset&gt;    using namespace std;    int main &#40;&#41;    &#123;        string mystring;        bitset&lt;4&gt; mybits;         mybits.set&#40;&#41;;        mystring = mybits.to_string&lt;char, char_traits&lt;char&gt;,         allocator&lt;char&gt; &gt;&#40;&#41;;        cout &lt;&lt; mystring &lt;&lt; endl;        return 0;    &#125;
A. 0000
B. 0001
C. 0011
D. 1111
Answer:A
#include &lt;iostream&gt;    #include &lt;string&gt;    #include &lt;bitset&gt;    using namespace std;    int main &#40;&#41;    &#123;        string mystring;        bitset&lt;4&gt; mybits;         mybits.set&#40;&#41;;        mystring = mybits.to_string&lt;char, char_traits&lt;char&gt;,         allocator&lt;char&gt; &gt;&#40;&#41;;        cout &lt;&lt; mystring &lt;&lt; endl;        return 0;    &#125;
A. 0000 B. 0001 C. 0011 D. 1111