?
What is output of the following program?
What is output of the following program?
int main()
{
fork();
fork();
fork();
if (wait(0) == -1)
printf("leaf child\n");
}
int main()
{
fork();
fork();
fork();
if (wait(0) == -1)
printf("leaf child\n");
}
Join the Discussion
Login to post a comment or share your explanation.
Login