/* commandline.c Jeff Ondich, 26 April 2019 Part of a quick intro to C If main has the parameters shown here, they represent the array of command-line arguments. So, if you run this program like this: ./commandline goat pig emu then argc */ #include int main(int argc, char *argv[]) { printf("This invokation of this function has %d command-line arguments\n", argc); printf("Here they are:\n"); for (int k = 0; k < argc; k++) { printf(" argv[%d] = %s\n", k, argv[k]); } return 0; }