Answer to Question #49414 in C for Mira

Question #49414
int main(){

int i, j;
i = j = 0;
fork();
j++;
printf("i = %d, j = %d \n", i, j);
if(fork())
{
i += 5;
fork();

j *= 3;
printf("i = %d, j = %d \n", i, j);
}
else
{
i = j;
printf("i = %d, j = %d \n", i, j);
i--;
if(fork() == 0)
printf("i = %d, j = %d \n", i, j);
}}
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS