#include&lt;stdio.h&gt;   #include&lt;stdlib.h&gt;   #include&lt;unistd.h&gt;&nbsp;   int main&#40;&#41;   &#123;       pid_t child;       int status;       child = fork&#40;&#41;;       switch&#40;child&#41;&#123;           case -1 ;               perror&#40;&quot;fork&quot;&#41;;               exit&#40;1&#41;;           case 0 :               printf&#40;&quot;%d\n&quot;,getppid&#40;&#41;&#41;;               break;           default :               printf&#40;&quot;%d\n&quot;,getpid&#40;&#41;&#41;;               wait&#40;&amp;status&#41;;               break;        &#125;        return 0;   &#125;
A. this program will print two same integer values
B. this program will print two different integer values
C. segmentation fault
D. none of the mentioned
Answer:A
#include&lt;stdio.h&gt;   #include&lt;stdlib.h&gt;   #include&lt;unistd.h&gt;&nbsp;   int main&#40;&#41;   &#123;       pid_t child;       int status;       child = fork&#40;&#41;;       switch&#40;child&#41;&#123;           case -1 ;               perror&#40;&quot;fork&quot;&#41;;               exit&#40;1&#41;;           case 0 :               printf&#40;&quot;%d\n&quot;,getppid&#40;&#41;&#41;;               break;           default :               printf&#40;&quot;%d\n&quot;,getpid&#40;&#41;&#41;;               wait&#40;&amp;status&#41;;               break;        &#125;        return 0;   &#125;
A. this program will print two same integer values B. this program will print two different integer values C. segmentation fault D. none of the mentioned
Explanation:In this program the child process is printing its parent PID and the parent process is printing its own PID. Hence both the integer values are same.