Consider the following segment of codes related to process creation. How many…
Coal India Management Trainee CBT · 2017 · 2017 System · Paper II · Domain Knowledge
Consider the following segment of codes related to process creation. How many times the message “child process created” will be printed?
#include <stdio.h>
void main()
{
fork();
fork();
fork();
printf("child process created");
}
- A.
9
- B.
7
- C.
8
- D.
3
Attempted by 881 students.
Sign up free to check your answer
Sign up freeLoading lesson…