会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Melody_Zhy
Stay hungry Stay foolish
博客园
首页
新随笔
联系
管理
订阅
2015年7月22日
static 和 extern
摘要: static 和 extern 修饰局部变量static修饰局部变量: 作用:1)static定义的变量的作用域会得到延长 2) static定义变量的语句只会被执行一次extern不能够修饰局部变量的void test (int num){ static int n = 0; ...
阅读全文
posted @ 2015-07-22 16:21 Melody_Zhy
阅读(328)
评论(0)
推荐(1)
编辑
公告