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

This program will print the . . . . . . . . string.
#include<stdio.h>
 
int main()
{
    int fd[2];
    char buff[11];
    if (pipe(fd) != 0)
        perror("pipe");
    write(fd[1],"Example",11);
    lseek(fd[0],0,3);
    read(fd[0],buff,11);
    printf("%s\n",buff);
    return 0;
}

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.