This program will print the _____ string. [code] #include<stdio.h> int main() { int fd[2]; char buff[11];

This program will print the _____ string.
Code:
   #include<stdio.h>
   int main()
   {
       int fd[2];
       char buff[11];
       if (pipe(fd) != 0)
           perror("pipe");
       write(fd[1],"123hoidap",11);
       lseek(fd[0],0,3);
       read(fd[0],buff,11);
       printf("%s\n",buff);
       return 0;
   }
A. “123hoidap”
B. “San”
C. “foundry”
D. none of the mentioned
 

Tìm kiếm

Back
Top