#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 :                   exit&#40;2&#41;;                   break;               default :                          wait&#40;&amp;status&#41;;                   printf&#40;&quot;%d\n&quot;,WEXITSTATUS&#40;status&#41;&#41;;                   break;           &#125;           return 0;   &#125;
A. 0
B. 1
C. 2
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 :                   exit&#40;2&#41;;                   break;               default :                          wait&#40;&amp;status&#41;;                   printf&#40;&quot;%d\n&quot;,WEXITSTATUS&#40;status&#41;&#41;;                   break;           &#125;           return 0;   &#125;
A. 0 B. 1 C. 2 D. none of the mentioned
Explanation:The “WEXITSTATUS” returns the low-order 8 bits of the exit status value from the child process.