Question: #include main() { int m=10, n=5,count=1, mult=1; while(count { if(m != 0) { m = fork(); n = n+25; } else { m = fork();

#include
main()
{
int m=10, n=5,count=1, mult=1;
while(count
{
if(m != 0)
{
m = fork(); n = n+25;
}
else
{
m = fork(); n = n+20; mult = mult*n;
}
printf( n = %d mult = %d, n, mult);
count =count + 1;
}
}
Simulate the execution of this program and show how processes are created What is total number of processes? Show your work. What will this program print on the screen when it executes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
