Possible Duplicate:
What is the difference between char a[] = “string”; and char *p = “string”;
int main() {
char *p="ayqm";
char c;
c=++*p;
printf("%c",c);
return 0;
}
Its output is a. See http://codepad.org/cbNOPuWt But I feel that the output should be b since c = ++*p.
Anybody can explain the reason for the output?