-->
当前位置:首页 > 题库

PROGRAMMING:Global variable code analysis

Luz5年前 (2021-05-10)题库364
```
Code analysis of global variables / / examples of programs with the same name of global variables and local variables.
int x=11,y=12,z=13;
void fun(){
int x=21,y=22;
printf("x=%d,y=%d,z=%d\n",x,y,z);
}
int main(){
{
int y=32;
printf("x=%d,y=%d,z=%d\n",x,y,z);
fun();
}
printf("x=%d,y=%d,z=%d\n",x,y,z);
return 0;
}
```
###Input example:
```in
```
###Output example:
```out
x=11,y=32,z=13
x=21,y=22,z=13
x=11,y=12,z=13
```







answer:If there is no answer, please comment