Question: please Use C++ to solve the problem 1. Review the following C code that we covered in class. 2. Based on the code example shown
1. Review the following C code that we covered in class. 2. Based on the code example shown above, write C/C++ code that creates a new process and replaces the memory space of the newly created process with a program called "pwd" that prints out the full path name of your current directory. Make sure that the parent process should wait until the pwd program is terminated. If your program works correctly, your program should output the full path name
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
