#include &lt;iostream&gt;    #include &lt;exception&gt;    using namespace std;    void myunexpected &#40;&#41;    &#123;        cout &lt;&lt; &quot;unexpected called\n&quot;;        throw 0;    &#125;    void myfunction &#40;&#41; throw &#40;int&#41;     &#123;        throw 'x';    &#125;    int main &#40;&#41;     &#123;        set_unexpected &#40;myunexpected&#41;;        try         &#123;            myfunction&#40;&#41;;        &#125;        catch &#40;int&#41;         &#123;            cout &lt;&lt; &quot;caught int\n&quot;;        &#125;        catch &#40;...&#41;          &#123;             cout &lt;&lt; &quot;caught other exception\n&quot;;         &#125;        return 0;    &#125;
A. caught other exception
B. caught int
C. unexpected called
D. both b & c
Answer:A
#include &lt;iostream&gt;    #include &lt;exception&gt;    using namespace std;    void myunexpected &#40;&#41;    &#123;        cout &lt;&lt; &quot;unexpected called\n&quot;;        throw 0;    &#125;    void myfunction &#40;&#41; throw &#40;int&#41;     &#123;        throw 'x';    &#125;    int main &#40;&#41;     &#123;        set_unexpected &#40;myunexpected&#41;;        try         &#123;            myfunction&#40;&#41;;        &#125;        catch &#40;int&#41;         &#123;            cout &lt;&lt; &quot;caught int\n&quot;;        &#125;        catch &#40;...&#41;          &#123;             cout &lt;&lt; &quot;caught other exception\n&quot;;         &#125;        return 0;    &#125;
A. caught other exception B. caught int C. unexpected called D. both b & c
Explanation:As we are calling set_unexpected (myunexpected) function, this is printing as unexpected called and because of operator compliance it is arising an exception.