#include &lt;stdexcept&gt;    #include &lt;limits&gt;    #include &lt;iostream&gt;    using namespace std;    void func&#40;int c&#41;    &#123;        if &#40;c &lt; numeric_limits&lt;char&gt; :: max&#40;&#41;&#41;            throw invalid_argument&#40;&quot;MyFunc argument too large.&quot;&#41;;        else        &#123;            cout&lt;&lt;&quot;Executed&quot;;        &#125;    &#125;    int main&#40;&#41;    &#123;        try        &#123;            func&#40;256&#41;;        &#125;        catch&#40;invalid_argument&amp; e&#41;        &#123;            cerr &lt;&lt; e.what&#40;&#41; &lt;&lt; endl;            return -1;        &#125;        return 0;    &#125;
A. Invalid arguments
B. Executed
C. Error
D. Runtime error
Answer:A
#include &lt;stdexcept&gt;    #include &lt;limits&gt;    #include &lt;iostream&gt;    using namespace std;    void func&#40;int c&#41;    &#123;        if &#40;c &lt; numeric_limits&lt;char&gt; :: max&#40;&#41;&#41;            throw invalid_argument&#40;&quot;MyFunc argument too large.&quot;&#41;;        else        &#123;            cout&lt;&lt;&quot;Executed&quot;;        &#125;    &#125;    int main&#40;&#41;    &#123;        try        &#123;            func&#40;256&#41;;        &#125;        catch&#40;invalid_argument&amp; e&#41;        &#123;            cerr &lt;&lt; e.what&#40;&#41; &lt;&lt; endl;            return -1;        &#125;        return 0;    &#125;
A. Invalid arguments B. Executed C. Error D. Runtime error
Explanation:As we are throwing the function and catching it with a correct data type, So this program will execute.