right, command line arguments are one of the thing where u are allowed to enter data as a intial input to your program from the command promt. for instance if u wanted to specify the file name, or any numeraial vales and it may be anything which fits into the 2D char array. the following is a sample code of how to use a command line arguments
Code:
#include<stdio.h>
int main(int argc, char **argv)
{
int i;
printf("Total no of argument %d\n", argc);
printf("Arguments are as follo\n");
for(i=0;i<argc;i++)
printf("%s\n",argv[i]);
getchar();
}
/*myoutput
a.out 12 45 87 36 96 45 0
Total no of argument 8
Arguments are as follo
a.out
12
45
87
36
96
45
0
*/
so u can see that the data eneted from the command like have been processed by the program and displayed. so if u want, u can use those values for any other applaication. if u see there the main fucntion takes two arguments. the first aragument argc of type int gives u total no of argumnets and the agrv will contain the actual argumnets itself.
hope this helps
ssharish2005