#include&lt;stdio.h&gt;   #include&lt;stdlib.h&gt;&nbsp;   int main&#40;&#41;   &#123;       int fd&#91;2&#93;;       int child;       char buff&#91;6&#93;;       if&#40;pipe&#40;fd&#41; != 0&#41;                          perror&#40;&quot;pipe&quot;&#41;;       child=fork&#40;&#41;;       switch&#40;child&#41;&#123;           case -1 :               perror&#40;&quot;fork&quot;&#41;;               exit&#40;1&#41;;           case 0 :               if &#40;write&#40;fd&#91;1&#93;,&quot;Linux&quot;,6&#41; != 6&#41;                   perror&#40;&quot;write&quot;&#41;;                   break;               default :                   read&#40;fd&#91;0&#93;,buff,6&#41;;                   printf&#40;&quot;%s\n&quot;,buff&#41;;                   break;       &#125;       return 0;   &#125;
A. this program will print the string “Linux”
B. this program 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 fd&#91;2&#93;;       int child;       char buff&#91;6&#93;;       if&#40;pipe&#40;fd&#41; != 0&#41;                          perror&#40;&quot;pipe&quot;&#41;;       child=fork&#40;&#41;;       switch&#40;child&#41;&#123;           case -1 :               perror&#40;&quot;fork&quot;&#41;;               exit&#40;1&#41;;           case 0 :               if &#40;write&#40;fd&#91;1&#93;,&quot;Linux&quot;,6&#41; != 6&#41;                   perror&#40;&quot;write&quot;&#41;;                   break;               default :                   read&#40;fd&#91;0&#93;,buff,6&#41;;                   printf&#40;&quot;%s\n&quot;,buff&#41;;                   break;       &#125;       return 0;   &#125;
A. this program will print the string “Linux” B. this program will print nothing C. segmentation fault D. none of the mentioned
Explanation:One process can read and write to another process by pipe.