Consider the following segment of codes related to process creation. How many times the message "child process created" will be printed?
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");
}
Show answerHide answer
Correct answer: (C) 8