Question 1:
int main()
{
char *p="abcd";
printf("%c",*(p++));
return 0;
} // Here it will print a
Question 2:
int main()
{
char *p="abcd";
printf("%c",++*(p++));//why it is showing error over here
return 0;
} // Here it shows runtime error.
Can someone please explain to me why the statement ++*(p++) causes a runtime error.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…