Question: Question 2 - Command Line arguments Write a program that displays the current working directory, then number of arguments entered on the command line, the

Question 2- Command Line arguments
Write a program that displays the current working directory, then number of arguments entered on the command line, the name of the executable, and then list each argument
Example:
Command Entered:
> lablq2 grades.txt CIS200 UMD 99
Output is:
The current working directory is: c:??user??me??cis200??lab??lab2
The executable file is: lab2q3.exe
There were 4 arguments entered.
Argument 2 is: CIS200
Argument 3 is: UMD
Argument 4 is: 99
 Question 2- Command Line arguments Write a program that displays the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!