pointer and const

时间:2015-11-24 21:13:04   收藏:0   阅读:275
const int* p=nullptr; //p 是一个指向整形常量的普通指针,不能修改该整形常量
int* const p=nullptr; //p是一个常量指针,不能修改p的指向
const int* q=nullptr; //同2

 

原文:http://www.cnblogs.com/showyoucode/p/4992815.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!