c试题-请输入下面c代码的执行结果
#include <stdio.h> int main() { int arr[] = {1, 2, 3, 4, 5}; int *ptr = (int *)(&arr + 1); printf("%d %d\n", *(arr + 1), *(ptr - 1)); return 0; }
#include <stdio.h> int main() { int arr[] = {1, 2, 3, 4, 5}; int *ptr = (int *)(&arr + 1); printf("%d %d\n", *(arr + 1), *(ptr - 1)); return 0; }
网友评论0