can anyone tell what is the type of argv,
whether it is-
pointer to array of pointers
or
pointer
the declaration char *argv[], means aray of char pointers
can anyone tell what is the type of argv,
whether it is-
pointer to array of pointers
or
pointer
the declaration char *argv[], means aray of char pointers
The variable argv is an array of pointers to string.
Code:int main (int argc, char **argv) { /* Print first string in argv, which is name of program */ printf ("%s\n", argv [0]); return 0; }