Question 185Asked in CIL MT Systems, 26 Mar 2017 (12:30 PM)

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"); }
  1. A9
  2. B7
  3. C8
  4. D3
Show answerHide answer

Correct answer: (C) 8

From CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM)

This is question 185 of CIL MT Systems PYQ, 26 Mar 2017 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.