I'm doing some exam revision and I'm stuck at this question. If some one could explain to me how this answer is obtained, it would be much appreciated:
what does the following code print?Code:char alpha[] = "abcdefghi"; char ch[80], *pch = &ch[0];
ANSWER:Code:strcpy(ch, alpha); putchar(*pch++); putchar((*pch)++); putchar(*++pch); putchar(++(*pch)); printf("\n%s", ch);
Code:a b c d acddefghi