// Week 5 pre-recorded lecture Part 2 code demo // showing the use of command line arguments // For example you can run this program like // ./command_line_args "hello world" 5 BLAH // #include int main(int argc, char *argv[]) { printf("There are %d command line arguments\n", argc); // argv[0] is always the program name printf("This program name is %s\n", argv[0]); // print out all arguments in the argv array for (int i = 0; i < argc; i++) { printf("Argument at index %d is %s\n", i, argv[i]); } return 0; }