You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
{ This program does a lot of shadowing }
|
|
PROGRAM shadowing;
|
|
|
|
function x (a : integer) : integer;
|
|
begin
|
|
x := a
|
|
end;
|
|
|
|
function a (b : integer) : integer;
|
|
var x : integer;
|
|
begin
|
|
x := b;
|
|
a := x
|
|
end;
|
|
|
|
begin
|
|
writeln(a(x(4)))
|
|
end. |