Question: Consider a C program that calls fork 0 . Before calling fork 0 , the main (i.e., parent) process accesses an integer variable myvar and

Consider a C program that calls fork 0 . Before calling fork 0 , the main (i.e., parent) process accesses an integer variable myvar and set its value to 100 . The child process changes the value of myvar to 200 and displays it via printf(). After fork(), the parent process changes myvar to 300 and displays it via printf0. What values will be displayed on screen? Why
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
