mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-27 00:03:43 +02:00
15 lines
257 B
ObjectPascal
15 lines
257 B
ObjectPascal
Program Example2;
|
|
|
|
{ Program to demonstrate the Addr function. }
|
|
|
|
Const Zero : integer = 0;
|
|
|
|
Var p : pointer;
|
|
i : Integer;
|
|
|
|
begin
|
|
p:=Addr(p); { P points to itself }
|
|
p:=Addr(I); { P points to I }
|
|
p:=Addr(Zero); { P points to 'Zero' }
|
|
end.
|