Using command line arguments
First argument (index 0) is always the name of the program (just like in bash)
For example: ./a.out 100 foo
argv[0] = the string "./a.out"
argv[1] = the string "100"
argv[2] = the string "foo"
Sometimes we need to convert to numeric types:
int x = atoi(argv[1]); // need stdlib.h for this!
List of other conversions in stdlib.h: