Consider the following segment of codes related to process creation. How many…
Coal India · Computer Science · 2017
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 839 students.
Show answer
Correct answer: C
Explore the full course: Iocl Engineers Officers Grade A Paper 2
Loading lesson…