首页 > 其他 > 详细

const 修饰

时间:2015-03-03 20:31:52      阅读:244      评论:0      收藏:0      [点我收藏+]

int * const grape_jelly; 指针是只读的。

const int * grape; int const * grape; 指针所指向的对象是只读的。

对象和指针有可能都是只读的:

const int * const grape_jam;

int const * const grape_jam;

 

const 修饰

原文:http://www.cnblogs.com/wanghui390/p/4311795.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!