int main(int argc, char **argv) {
char **myargv = argv + 1;
while (myargv[0] && myargv[0][0] == '-') {
if (strcmp(myargv[0], "-d") == 0) {
myargv++;
continue;
}
exit(1);
}
argc -= (myargv - argv);
argv = myargv;
Hi ,
I am new to C programming . I understood the above arguments to main are for command line purposes . But the next line contains a character double pointer to argv.
I didnt understand, what will be stored in myargv?
and the while loop condition have two dimensional array this to confuses me.
could any one tell me what will be the final value of argv?
thanks in advance ..