0 votes 0 votes pid=fork(); if (pid !=0) fork(); fork(); no . of child process are created when above program are executed.? Shubham Aggarwal asked Jan 15, 2019 Shubham Aggarwal 579 views answer comment Share Follow See all 13 Comments See all 13 13 Comments reply Show 10 previous comments balchandar reddy san commented Jan 15, 2019 reply Follow Share didn't get it..could you elaborate @Shobhit Joshi 0 votes 0 votes Kunal Kadian commented Jan 15, 2019 reply Follow Share Yes @Shubhgupta is Correct. That's why I answered it 5. 0 votes 0 votes Kunal Kadian commented Jan 15, 2019 reply Follow Share @balchandar reddy san try making a tree diagram and see. In if condition there is only 1 fork statement. The last fork statement is outside if. 0 votes 0 votes Please log in or register to add a comment.