mirror of
				https://gitlab.com/freepascal.org/fpc/source.git
				synced 2025-10-31 08:31:49 +01: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.
 | 
