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
What will be the output of the following C code?
#include < stdio.h >
static int x = 5;
void main()
{
int x = 9;
{
x = 4;
}
printf(“%d”, x);
}What will be the output of the following C code?
#include < stdio.h >
int x;
void main()
{
m();
printf(“%d”, x);
}
void m()
{
x = 4;
}What will be the output of the following C code?
#include < stdio.h >
int x = 5;
void main()
{
int x = 3;
m();
printf(“%d”, x);
}
void m()
{
x = 8;
n();
}
void n()
{
printf(“%d”, x);
}What will be the output of the following C code?
#include < stdio.h >
void main()
{
int x = 3;
{
x = 4;
printf(“%d”, x);
}
}Array sizes are optional during array declaration by using ______ keyword.
What will be the sequence of allocation and deletion of variables in the following C code?
#include < stdio.h >
int main()
{
int a;
{
int b;
}
}Comment on the following 2 C programs.
#include < stdio.h > //Program 1
int main()
{
int a;
int b;
int c;
}
#include < stdio.h > //Program 2
int main()
{
int a;
{
int b;
}
{
int c;
}
}
Join The Discussion