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 >
Text File  |  1991-11-14  |  384b  |  14 lines

  1. main()
  2. {
  3.     int *p;
  4.     int z[];
  5.     int x[3] [];
  6.     printf(sizeof(z));    /* this turns out to be 2 !!! */
  7.     printf(sizeof(x));    /* this turns out to be 6 */
  8.     z = p;                  /* it says nonassignable operand */
  9.     z[4] = 3;        /* it willingly does this */
  10.     x++;            /* no code table for p++ (sic) */
  11. }
  12.   /* it says nonassignable operand */
  13.     z[4] = 3;        /* it willingly does this */
  14.