Question: Draw a hierarchy tree for the following code: Also explain how. #include #include #include int count = 0; main() pid_t x; x = fork(); count
Draw a hierarchy tree for the following code: Also explain how.
#include
x = fork(); count = count + 5; printf(A: count is %d ,count); /* Line L */ if (x == 0) { count = count + 10; fork(); printf(B: count is %d ,count); /* Line M */ } else { count = count + 15; printf(C: count is %d ,count); /* Line N */ } }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
