HomeModulesModule 2.2 (Args)Apply
I ntroduce
C onnect
A pply
R eflect
E xtend

Apply - Arguments

Now that you've had a chance to see how arguments can be used in a command line to pass information, let's see how much of it has made sense to you.

Following are a few questions about what we covered in the Connect section; click on what you think is the right answer. This page has been set up to let you know immediately if you've got it right.

Question 1 - Arguments

Consider the following command line:

>TempConvert 98.9 Celsius

What would argc be?

 


Question 2 - Arguments

In the following code declaration

int *ip;

What is ip?

 


Question 3 - Arguments

In the following code declaration

char **cpp;

What is cpp?

 


Question 4 - Arguments

What is the purpose of a double pointer to a char?

Finally, we’ll think about benefits and limitations of this method of data-passing (Reflect), and think about other ways of providing information to programs (Extend).

Click here to move on to the next section (Reflect).