uibk_703602-Compiler-Constr.../examples/shadowing/shadowing.mc

32 lines
245 B
MonkeyC
Raw Normal View History

2020-02-13 22:32:08 +01:00
int main()
{
int x;
x = 1;
print_int(x);
{
x = 2;
print_int(x);
int x;
x = 3;
print_int(x);
{
x = 4;
print_int(x);
int x;
x = 5;
print_int(x);
}
print_int(x);
}
print_int(x);
print_nl();
return 0;
}