EverSpring working shop

To pursue creative ideas based on nature.

统计

留言簿(1)

他山之石

阅读排行榜

评论排行榜

const type * ptr_name and the type * const ptr_name

http://www.cppblog.com/cc/archive/2006/03/12/4045.html

const char * ptr :   The content pointer by ptr can not be changed.
char * const ptr:    The pointer value can not be changed.

posted on 2009-02-22 14:59 everspring79 阅读(262) 评论(1)  编辑 收藏 引用 所属分类: Notes

评论

# re: const type * ptr_name and the type * const ptr_name 2009-03-01 20:35 everspring79

Remark - The const member function in a class means no member data are allowed to be modified, exluding the content pointed by the member pointer. And the const object can only call the const member function.!  回复  更多评论   


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   博问   Chat2DB   管理