- 博客(1)
- 收藏
- 关注
转载 C/C++:面试题 int *ptr=(int *)(&a+1);
一个面试题,转载 http://blog.sina.com.cn/s/blog_75b0e2ad01014ig3.html main() { int a[5]={1,2,3,4,5}; int *ptr=(int *)(&a+1); printf("%d,%d",*(a+1),*(ptr-1)); } 输出为:2,5 请解释以上代码的输出结果。
2017-10-12 21:14:41
1114
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人