Consider the following segment of codes related to process creation. How many…

PYQ Coal India Management Trainee CBT 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");

}

  1. A.

    9

  2. B.

    7

  3. C.

    8

  4. D.

    3

Attempted by 1006 students.

Sign up free to check your answer

Sign up free

Explore the full course: Coal India Management Trainee

Loading lesson…