Q226
What is the output of this program? #include #include int main() int fd, count; char buff[10]; if (mkfifo("/tmp/test_fifo",0666) != 0) perror("mkfifo"); fd = open("/tmp/test_fifo",O_RDONLY|O_NONBLOCK); count = read(fd,buff,10); printf("%d ",count); return 0;
A.
0
AnswerB.
-1
C.
10
D.
none of the mentioned
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board