Command-Line Arguments
The function main() can have two parameters, argc and argv[]. argc is an int whose value is equal to the number of strings on the command line, and argv[] is an array of pointers to these strings.
main(int argc,
char* argv[])
{
. . .
}
Next slide
Back to first slide
View graphic version