#include&lt;stdio.h&gt;   #include&lt;signal.h&gt;   #include&lt;stdlib.h&gt;&nbsp;   int main&#40;&#41;   &#123;       pid_t child;       signal&#40;SIGINT,SIG_IGN&#41;;       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 :               while&#40;1&#41;&#123;                   printf&#40;&quot;Parent Process\n&quot;&#41;;                   pause&#40;&#41;;               &#125;               break;       &#125;       return 0;   &#125;
A. child process terminates
B. parent process terminates
C. both child and parent process ignores the signal
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;       signal&#40;SIGINT,SIG_IGN&#41;;       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 :               while&#40;1&#41;&#123;                   printf&#40;&quot;Parent Process\n&quot;&#41;;                   pause&#40;&#41;;               &#125;               break;       &#125;       return 0;   &#125;
A. child process terminates B. parent process terminates C. both child and parent process ignores the signal D. none of the mentioned
Explanation:If a process ignores a signal then by default its child also ignores that signal.