Hi

Maybe you should start reading some basic c tutorials. Two decent ones have been
written by white_scorpion[1]. In the beginner tutorial, you learn about printf,
in the intermediate one %s is explained.

The line
Code:
for (i=0;i<argc;i++) printf("%s\n",argv[i]);
simply prints the program arguments on the console.

I would not try to achieve too much at once. First, learn to understand
how that little program is doing what it is doing.
char *argv[] are somewhat "advanced" data types (pointers and arrays).

But if you want to convert the first parameter to an integer, try an
Code:
  i = atoi(argv[1])
If you want to check the second parameter char by char, try an
Code:
for (i=0;i<strlen(argv[2]);i++)
      printf("%c",argv[2][i]);
Cheers

[1] http://www.antionline.com/search.php...orumchoice=678