home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
355_03
/
slk3.exe
/
TEST
/
TST
/
ARRAY.TST
< prev
next >
Wrap
Text File
|
1991-11-14
|
384b
|
14 lines
main()
{
int *p;
int z[];
int x[3] [];
printf(sizeof(z)); /* this turns out to be 2 !!! */
printf(sizeof(x)); /* this turns out to be 6 */
z = p; /* it says nonassignable operand */
z[4] = 3; /* it willingly does this */
x++; /* no code table for p++ (sic) */
}
/* it says nonassignable operand */
z[4] = 3; /* it willingly does this */