Question: Write a C program, which gets a command - line argument in each run. We can suppose that the first word of the command line
Write a C program, which gets a commandline argument in each run. We can suppose that the first word of the command line arguments excluding the name of the executable is the name of a directory. The program must list all the objects within the given directory. So it prints out the names of files and folders contained by the directory given in the commandline argument. For example, if "Progrs" is a subfolder in the present working directory the program must work in the same way as the Is Progs command in Linux.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
