int main(int argc, char * argv[]) { int a[] = { 1,2,3,4,5 }; int* ptr = (int*)(&a + 1); printf(“%d,%d”, *(a + 1), *(ptr – 1)); return 0; } 屏幕输出的结果为:
区块链毕设网qklbishe.com为您提供问题的解答
int main(int argc, char * argv[])
{
int a[] = { 1,2,3,4,5 };
int* ptr = (int*)(&a + 1);
printf(“%d,%d”, *(a + 1), *(ptr – 1));
return 0;
}
屏幕输出的结果为: