a) get
b) wait
c) exit
d) fork
Answer: b
Explanation: wait() system call is used by the parent process to determine termination of child process. The parent process uses wait() system call and gets the exit status of the child process as well as the pid of the child process which is terminated.
Related Posts
Comment on the output of the following C code.
#include < stdio.h >
#include “test.h”
#include “test.h”
int main()
{
//some code
}Can function definition be present in header files?
How is search done in #include and #include”somelibrary.h” normally or conventionally?
How is search done in #include and #include “somelibrary.h” according to C standard?
What would happen if you create a file stdio.h and use #include “stdio.h”?
Which directory the compiler first looks for the file when using #include?
What is the sequence for preprocessor to look for the file within <>?
Join The Discussion