#include&lt;stdio.h&gt;   #include&lt;signal.h&gt;   #include&lt;stdlib.h&gt;&nbsp;   int main&#40;&#41;   &#123;       pid_t child;       child=fork&#40;&#41;;       switch&#40;child&#41;&#123;           case -1 :               perror&#40;&quot;fork&quot;&#41;;               exit&#40;1&#41;;           case 0 :               while&#40;1&#41;&#123;                   printf&#40;&quot;Child Process\n&quot;&#41;;                   sleep&#40;1&#41;;               &#125;               break;                         default :               sleep&#40;5&#41;;               kill&#40;child,SIGINT&#41;;               printf&#40;&quot;The child process has been killed by the parent process\n&quot;&#41;;               break;       &#125;       return 0;   &#125;
A. the child process kills the parent process
B. the parent process kills the child process
C. both the processes are killed by each other
D. none of the mentioned
Answer:A
#include&lt;stdio.h&gt;   #include&lt;signal.h&gt;   #include&lt;stdlib.h&gt;&nbsp;   int main&#40;&#41;   &#123;       pid_t child;       child=fork&#40;&#41;;       switch&#40;child&#41;&#123;           case -1 :               perror&#40;&quot;fork&quot;&#41;;               exit&#40;1&#41;;           case 0 :               while&#40;1&#41;&#123;                   printf&#40;&quot;Child Process\n&quot;&#41;;                   sleep&#40;1&#41;;               &#125;               break;                         default :               sleep&#40;5&#41;;               kill&#40;child,SIGINT&#41;;               printf&#40;&quot;The child process has been killed by the parent process\n&quot;&#41;;               break;       &#125;       return 0;   &#125;
A. the child process kills the parent process B. the parent process kills the child process C. both the processes are killed by each other D. none of the mentioned
Explanation:The parnet process kills the child by sending a signal.