Question: Draw memory diagram of the given code. int main() { if (fork()) { if (! fork()) { fork(); printf(i); } else { printf(2); } }

Draw memory diagram of the given code.
int main() { if (fork()) { if (! fork()) { fork(); printf("i"); } else { printf("2"); } } else { printf("3 "); } printf("4 "); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
