#include &lt;iostream&gt;    #include &lt;new&gt;    using namespace std;    int main &#40;&#41;    &#123;        int i, n;        int * p;        i = 2;        p= new &#40;nothrow&#41; int&#91;i&#93;;        if &#40;p == 0&#41;            cout &lt;&lt; &quot;Error: memory could not be allocated&quot;;        else	&#123;            for &#40;n=0; n&lt;i; n++&#41;            &#123;                p&#91;n&#93; = 5;            &#125;            for &#40;n = 0; n &lt; i; n++&#41;                cout &lt;&lt; p&#91;n&#93;;            delete&#91;&#93; p;         &#125;         return 0;    &#125;
A. 5
B. 55
C. 555
D. Error: memory could not be allocated
Answer:A
#include &lt;iostream&gt;    #include &lt;new&gt;    using namespace std;    int main &#40;&#41;    &#123;        int i, n;        int * p;        i = 2;        p= new &#40;nothrow&#41; int&#91;i&#93;;        if &#40;p == 0&#41;            cout &lt;&lt; &quot;Error: memory could not be allocated&quot;;        else	&#123;            for &#40;n=0; n&lt;i; n++&#41;            &#123;                p&#91;n&#93; = 5;            &#125;            for &#40;n = 0; n &lt; i; n++&#41;                cout &lt;&lt; p&#91;n&#93;;            delete&#91;&#93; p;         &#125;         return 0;    &#125;
A. 5 B. 55 C. 555 D. Error: memory could not be allocated
Explanation:As we had given i value as 2, It will print the 5 for two times.