Question -
What will be the output of the following program. #include<stdio.h> int main() { int pid; int retvalue; int p[2]; pipe(p); char buff[6]="hello"; pid=fork(); if(pid == 0) { exit(0); } else { sleep(1); retval = write ( p[1], buff); printf("%d",retval); } }
Submit Your Solution hear: