Tuesday, 9 December 2014

C Program to print strings through command line

Program to print strings through command line
#include"myHeader.h"
main(int argc,char **argv)
{
int i;
for(i=0;i<argc;i++)
printf("%s\n",argv[i]);
}
OutPut:
madan@madan-Lenovo-G570:~/madan$ ./a.out 1223 1223
1223
1223