Command Line Arguments in C
Command line arguments allow values to be passed to a program when it starts.
The main function can be written as:
int main(int argc, char *argv[])
argc
argc contains the number of command line arguments.
argv
argv is an array containing the argument strings.
The first element, argv[0], normally contains the program name.