- 博客(1)
- 资源 (1)
- 收藏
- 关注
转载 const与指针类型
const int *p = NULL;int const *p = NULL;//完全等价int * const p = NULL//和上面两种情况不同const int * const p = NULL;int const * const p = NULL;int x = 3;const int *p = &x;//p=&y; 正确//*p = 4; 错误//由于c
2016-04-11 17:29:27 1514
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人