结果分析
2)
#include<unistd.h>
#include<stdio.h>
#include<stdlib.h>
#define SIZE 50main()
{ int p,fp[2];
char in[SIZE]="This is a communication pipeline!\n";
char out[SIZE];
pipe(fp); while((p=fork())==-1);
if(p==0)
{
read(fp[0],out,SIZE);
printf("%s",out);
exit(0);
}
else {
write(fp[1],in,SIZE);
wait(0); }
}
请问结果分析怎么写呀🆘