#include <stdio.h>
int main()
{
char m[2][6] = { "abcd","bcdef" };
char * p =(char*) m;
printf("%c\n", m[1][2]);
printf("%c\n", *(++p)+2);
printf("%c\n", *(p+7));
printf("%c\n", *(*(++p) + 2); // 为什么这样是错误的?
return 0;
}
#include <stdio.h>
int main()
{
char m[2][6] = { "abcd","bcdef" };
char * p =(char*) m;
printf("%c\n", m[1][2]);
printf("%c\n", *(++p)+2);
printf("%c\n", *(p+7));
printf("%c\n", *(*(++p) + 2); // 为什么这样是错误的?
return 0;
}
括号不匹配啊
printf("%c\n", *(*(++p) + 2));