Question: During execution of a C program with no calls to fork, if a call to open does not have a corresponding call to close, then

During execution of a C program with no calls to fork, if a call to open does not have a corresponding call to close, then the file is closed when the process exits. [Select] Suppose that a C program opens a pipe for writing, followed by a call to fork, followed by a loop that reads from the pipe until EOF. All that is needed for the loop to complete is for the child process to close the write end of the pipe. [ Select]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
