Bellow is the code of what is going on , and here is an image of what am i trying to do , any help would be appreciated.Trying to draw the diagram of all the processes Code:
for(i=0;i<2;i++){
int pid = fork();
if(pid == 0){
fork();
printf("\tA\n");
}
else{
printf("\tB\n");
}
}//for
printf("\tC\n");
return 0;
}