home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_08
/
9n08128a
< prev
next >
Wrap
Text File
|
1991-06-17
|
649b
|
28 lines
main( )
char *fptr;
unsigned err_code
int ***array;
int init=O;
static unsigned d[3]={3,3,3};
static int st[3]={0,0,0};
int t,n,j;
array = (int ***)daa(sizeof(int),3,d,st,&err_code, &fptr, &init);
for(t=O;t<3;t++){
for(n=O;n<3;n++){
for(j=O;j<3;j++){
printf("%O8x ",&array[t][n][j]);
}
}
}
printf("\n");
}
Under OS9/68000 with the Microware C compiler I get a most interesting
list of addresses--most of which point to memory not even extant in my
computer, let alone in the array bounds.