#include&lt;stdio.h&gt;   #include&lt;fcntl.h&gt;&nbsp;   int main&#40;&#41;   &#123;       int fd;       char buff&#91;512&#93;;       if&#40; mkfifo&#40;&quot;/tmp/test_fifo&quot;,0666&#41; == -1&#41;           perror&#40;&quot;mkfifo&quot;&#41;;              fd = open&#40;&quot;/tmp/test_fifo&quot;,O_RDONLY&#41;;       read&#40;fd,buff,512&#41;;       printf&#40;&quot;%s\n&quot;,buff&#41;;       return 0;   &#125;
A. this program will print the garbage of 512 bytes
B. this program will print nothing
C. segmentation fault
D. none of the mentioned
Answer:A
#include&lt;stdio.h&gt;   #include&lt;fcntl.h&gt;&nbsp;   int main&#40;&#41;   &#123;       int fd;       char buff&#91;512&#93;;       if&#40; mkfifo&#40;&quot;/tmp/test_fifo&quot;,0666&#41; == -1&#41;           perror&#40;&quot;mkfifo&quot;&#41;;              fd = open&#40;&quot;/tmp/test_fifo&quot;,O_RDONLY&#41;;       read&#40;fd,buff,512&#41;;       printf&#40;&quot;%s\n&quot;,buff&#41;;       return 0;   &#125;
A. this program will print the garbage of 512 bytes B. this program will print nothing C. segmentation fault D. none of the mentioned
Explanation:In this program the fifo is opened in read only mode. Hence the process will remain block on read.