home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gold Fish 3
/
goldfish_volume_3.bin
/
files
/
dev
/
e
/
amigae
/
src
/
guide
/
static3.e
< prev
next >
Wrap
Text File
|
1994-12-13
|
305b
|
13 lines
PROC main()
DEF i, a[10]:ARRAY OF LONG, p:PTR TO LONG
FOR i:=0 TO 9
a[i]:=NEW [1, i, i*i]
/* a[i] is now dynamically allocated */
ENDFOR
FOR i:=0 TO 9
p:=a[i]
WriteF('a[\d] is an array at address \d\n', i, p)
WriteF(' and the second element is \d\n', p[1])
ENDFOR
ENDPROC