Question: Write a C program that has a local and a global variable. The program uses a fork to create a child process. The parent process
Write a C program that has a local and a global variable. The program uses a fork to create a child process. The parent process modifies both variables to be 10 and 20 and prints out the values. Then the child process modifies both variables to be 100 and 200 and prints out the values? Explain the program output?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
