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

What is the output of this program?
#include<stdio.h>
#include<string.h>
 
int main()
{
    int fd[2];
    int count;
    char buffer[6];
    if( pipe(fd) != 0)
        perror("pipe");
    memset(buffer,'\0',6);
    count=write(fd[1],"Linux",6);
    read(fd[0],buffer,6);
    printf("%s\n",buffer);
    return 0;put
}

Answer & Solution
Correct Answer: Option A
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.