PAGETURNER
BOX
REVIEW
GO
The command line argument that holds the
number of command line arguments is called _________.
Answer here:
That is correct!
You've got it on the 2nd try.
You've got it finally!
Sorry, try again.
No, try one more time.
Please review Topic 1: Using Command Line Arguments
FORGET1
The correct choice is argc. The only other command line
argument argv is a pointer to the array of these arguments!
In the command line:
ls | cat | pr | lpr
the number of command line arguments seen
by the command interpreter is _____?
Answer here:
That is correct!
You've got it on the 2nd try.
You've got it finally!
Sorry, try again.
No, try one more time.
Please review Topic 1: Using Command Line Arguments
FORGET2
The correct value is 7 . This is not the actual
number that each command in the UNIX pipe receives!
Assume that a command line is:
list file_1 file_2 file_3
and the source file for the program
list contained the statement:
if ((fps = fopen(*argv++, "r"))) {
Please type in the name of the first file
that will be opened!
Answer here:
That is correct!
You've got it on the 2nd try.
Good, you understand the concepts!
Sorry, try again.
No, try one more time.
Please review Topic 1: Using Command Line Arguments
FORGET3
The correct answer is list, which is probably not the
desired file. This problem in the code may be corrected
by using pre-incrementing on argv.