What will be the output of the program (myprog.c) below if it is executed from the command line?
cmd> myprog friday tuesday sunday #include<stdio.h> int main(int argc, char *argv[]) { printf("%c", *++argv[1]); return 0; }
I understand that argv [1] will be on Friday, and ++ argv [1] means Tuesday. I might be wrong. In any case, I do not seem to understand what will be the meaning of the whole expression.
c pointers
Krithi07
source share