1What are the only two parameters main is allowed to have?
argc and argv
2What is argc?
Argument count
3What data type is argc?
int
4What is argv?
Argument values
5What data type is argv?
Array of characters
6If argc is equal to 2, then how many arguments does your program have?
1
7True of False You can use argc to check if the user is running your program with the correct number of arguments
True
8Whenever you use argv, unless you are just printing out the strings, you should
convert them to C++ strings or use stringstreams to change them to other data types (ints, doubles, etc)
9It is good practice to check _________ at the beginning of the program to verify the user ran the program with the correct number of arguments.
argc
10Always check __________ before using __________
argc, argv