home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex2.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  257 b   |  15 lines

  1. Program Example2;
  2.  
  3. { Program to demonstrate the Addr function. }
  4.  
  5. Const Zero : integer = 0;
  6.  
  7. Var p : pointer;
  8.     i : Integer;
  9.  
  10. begin
  11.   p:=Addr(p);     { P points to itself }
  12.   p:=Addr(I);     { P points to I }
  13.   p:=Addr(Zero);  { P points to 'Zero' }
  14. end.
  15.