会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
bendantuohai
博客园
首页
新随笔
联系
订阅
管理
2015年4月5日
(转)const变量通过指针修改问题
摘要: 程序笔试题-const变量通过指针修改问题2012-10-06 20:45:18分类:C/C++const的变量在特定情况下可以通过指针修改,但是在另一些情况下是不能通过指针修改。以下是VC6下才测试。1 不能修改的情况#include int const a = 10;void main(void...
阅读全文
posted @ 2015-04-05 10:37 bendantuohai
阅读(557)
评论(0)
推荐(0)
编辑