- 博客(1)
- 收藏
- 关注
转载 指针与地址的加减
指针与地址的加减 摘自http://http://www.cnblogs.com/haore147/p/3647231.html int main() { int a[5]={1,2,3,4,5}; int *ptr=(int *)(&a+1); printf("%d,%d",*(a+1),*(ptr-1)); return 0; }如上,a是一个一维数组,数组中
2017-02-03 20:48:33 2184
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人