#include <stdio.h> int main(int argc, char *argv[]) { printf("the program is %s ", argv[0]); int i = argc; printf("the num of arg is %d ", argc); for(i=1; i<argc; i++) { printf("the %dth of arg is %s ", i, argv[i]); } return 0; }