Question: 2. Create a file: myprogram.c myprogram.c should accept 1 argument at the command prompt: any character like A, B, c, d, etc. As an example,
2. Create a file: myprogram.c myprogram.c should accept 1 argument at the command prompt: any character like A, B, c, d, etc. As an example, the user can invoke it like this: ./myprogram.o D The program should output its name, its PID, and whatever character was passed to it (D in the above example). Here is an example output: - /myprogram.o (PID=2466), D
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
