您的位置:首页 > 编程语言 > C语言/C++

C语言学习笔记——如何使用全局变量

2009-01-17 09:10 537 查看
#include <stdio.h>
int x = 10 ;
int main(void)
{
int x = 1 ;
{
int x = 2 ;
printf("%d/n",x);
{
extern x ;
int temp = x ;
printf("%d/n",temp);
}
}
printf("%d/n",x);
return 0 ;
}
 
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  语言 c include
相关文章推荐