Question: Please explain the code below step by step in detail. As im so confused on what int is _ parent = fork ( ) and
Please explain the code below step by step in detail. As im so confused on what int isparentfork and ifisparent do Also, how to get the output ABBCC or ABCBC.
code:
#include
#include
#include
int main
printfA;
int isparent fork;
printfB;
if isparent
waitNULL;
printfC;
Two possible answers. ABBCC or ABCBC.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
