The prototype is
int main(int argc,char *argv[]) // argv is an array of char pointers (= string)
If you want to print the first character of the string, you should try something like this :
int main(int argc,char *argv[]) {
int i;
char thisChar;
for (i = 1; i < argc; i++) { // argv[0] may be the file name (no guarantee, see Peter M's comment)
thisChar = argv[i][0]; // If the parameter is "abc", thisChar = 'a'
printf("%c\tAscii: %d\n", thisChar, thisChar);
}
return 0;
}