/** To test this program, run it as * ./strings_argc_argv argument1 argument2 argument3 * and so on. You can replace argument1, etc., with whatever word or number * you choose. * * The program will simply print in the terminal all the arguments that you * specified. The first argument is always the program name. */ #include int main(int argc, char *argv[]) { printf("There are %d arguments:\n", argc); for (int i = 0; i < argc; i++) printf("argv[%d] = %s\n", i, argv[i]); return 0; }