#include &lt;iostream&gt;    using namespace std;    int main&#40;&#41;    &#123;        char* buff;        try &#123;            buff = new char&#91;1024&#93;;            if &#40;buff == 0&#41;               throw &quot;Memory allocation failure!&quot;;            else               cout &lt;&lt; sizeof&#40;buff&#41; &lt;&lt; &quot;Byte successfully allocated!&quot;&lt;&lt;endl;        &#125;        catch&#40;char *strg&#41; &#123;            cout&lt;&lt;&quot;Exception raised: &quot;&lt;&lt;strg&lt;&lt;endl;        &#125;        return 0;    &#125;
A. 4 Bytes allocated successfully
B. 8 Bytes allocated successfully
C. Memory allocation failure
D. depends on the size of data type
Answer:A
#include &lt;iostream&gt;    using namespace std;    int main&#40;&#41;    &#123;        char* buff;        try &#123;            buff = new char&#91;1024&#93;;            if &#40;buff == 0&#41;               throw &quot;Memory allocation failure!&quot;;            else               cout &lt;&lt; sizeof&#40;buff&#41; &lt;&lt; &quot;Byte successfully allocated!&quot;&lt;&lt;endl;        &#125;        catch&#40;char *strg&#41; &#123;            cout&lt;&lt;&quot;Exception raised: &quot;&lt;&lt;strg&lt;&lt;endl;        &#125;        return 0;    &#125;
A. 4 Bytes allocated successfully B. 8 Bytes allocated successfully C. Memory allocation failure D. depends on the size of data type
Explanation:As we are allocating the memory to the variables and if there is not suffcient size means, it will throw an exception.