mpanigrahi Profile Answers by mpanigrahi Mar 22nd, 2006 *****main can recieve its own arguments but in a preconditioned way: main (int argc, char **argv) { ............ }*****% a.out 1 my_input argc is 3 argv[0] = "a.out" argv[1]="1" argv[2]="my_input"
How argc and argv works in the following main function?main(int argc,char *argv[]) { int n,i=0; while(argv[1][i]!=\'\\0\') { n=fun(); i++;} printf(\