//hello.c#include <stdio.h>int main(int argc, char *argv[]){ int i; if(argc<=1) { printf("The program name is :%s\n", argv[0]); } else { printf("The program name is :%s\n", argv[0]); for(i=1; i<argc; i++) printf("The argument %d is : %s\n", i, argv[i]); }} |