ExamVeda
Login
Home
This question belongs to Computer Science Linux
Linux
?

This program will print the value
#include<stdio.h>
#include<fcntl.h>
 
int main()
{
    int rfd, wfd, count;
    char buff[11];
    if (mkfifo("/tmp/test_fifo",0666) != 0)
        perror("mkfifo");
    wfd = open("/tmp/test_fifo",O_WRONLY|O_NONBLOCK);
    count = write(wfd,"Example",11);
    printf("%d\n",count);
    rfd = open("/tmp/test_fifo",O_RDONLY|O_NONBLOCK);
    count = read(rfd,buff,11);
    return 0;
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.