/* yousaid version 2: program to print out its command line arguments. */ /* Uses the NULL pointer at the end of argv[] to detect the end of the args */ #include main (int argc, char *argv[]) { int i; printf("argc is %d\n", argc); for (i=0; argv[i] != NULL; i++) { printf("argv[%d]: \"%s\"\n", i, argv[i]); } }