Try to hand trace the output of this code by drawing a fork diagram, keeping track of each process and their function calls. When you're ready to check your answer, press the button below and watch the animation to see how I draw a fork diagram for this program.
*
**
**
*
The output for this program is fixed. This means that the order of the output does not change from one run to another because waitpid() essentially adds "order" to the star() calls.