#include&lt;stdio.h&gt;   #include&lt;stdlib.h&gt;&nbsp;   int main&#40;&#41;   &#123;        int *ptr1;       while&#40;1&#41;&#123;           ptr1 = malloc&#40;1024*1024&#41;;           if&#40;ptr1 == 0&#41;               break;           sleep&#40;1&#41;;           printf&#40;&quot;Sanfoundry\n&quot;&#41;;           free&#40;ptr1&#41;;       &#125;		       return 0;   &#125;
A. it will print “Sanfoundry” until the process has been stopeed by any signal
B. it will print nothing
C. segmentation fault
D. none of the mentioned
Answer:A
#include&lt;stdio.h&gt;   #include&lt;stdlib.h&gt;&nbsp;   int main&#40;&#41;   &#123;        int *ptr1;       while&#40;1&#41;&#123;           ptr1 = malloc&#40;1024*1024&#41;;           if&#40;ptr1 == 0&#41;               break;           sleep&#40;1&#41;;           printf&#40;&quot;Sanfoundry\n&quot;&#41;;           free&#40;ptr1&#41;;       &#125;		       return 0;   &#125;
A. it will print “Sanfoundry” until the process has been stopeed by any signal B. it will print nothing C. segmentation fault D. none of the mentioned
Explanation:None.