Question: void miaw ( ) { int x = 1 0 ; pid _ t ret _ status = fork ( ) ; printf (

void miaw(){ int x =10; pid_t ret_status = fork(); printf("I love "); if (ret_status ==0){ x /=2; printf("351,"); pid_t ret_status_two = fork(); if (ret_status_two ==0){ printf("451,"); x++; } else { x--; wait(NULL); printf("469,"); }} else { x +=2; printf("333,"); wait(NULL); printf("474,"); }} Which of the following outputs are possible (select ALL that are possible): Choice 1 of 8:I love I love 351,451,469,333,474, Choice 2 of 8:I love 351,451, I love 351,469, I love 333,469,474, Choice 3 of 8:I love I love 351,333,451,469,474, Choice 4 of 8:I love 351,469,451, I love 333,474, Choice 5 of 8:I love 351,451,469, I love 351,469, I love 333,474, Choice 6 of 8:I love 333,474, I love 351,451,469, Choice 7 of 8:I love 351,451, I love 333,469,474, Choice 8 of 8:I love 333,474, I love 351,451,469, I love 351,469, Save Answer

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!