Question: Question 22 Give the output for the following code. #include #include void Dol (void) t sleep (1): print (): fflush (stdout) : void Do2 (void)

 Question 22 Give the output for the following code. #include #include

Question 22 Give the output for the following code. #include #include void Dol (void) t sleep (1): print (""): fflush (stdout) : void Do2 (void) sleep (3) printf ("2"): fflush (stdout): void Do3 (void) t sleep (2) : printfC"3") fflush (stdout) int main (void) t int wait ret: if (fork ( )-0) t if (fork)0) { if (fork ( ) printf("4") fflush (stdout) wait ret-wait (NULL): printf ("5") fflush (stdout) : vait ret wait (NULL) -0) t wait retwait (NULL) printf ("6") . fflush (stdout): else Dol 0 else Do20 lse Do3 0 Question 23

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 Databases Questions!