Zero Length Arrays Allowed in C Standard?

Steven Edward Watt swatt at cup.portal.com
Sun Dec 10 19:14:55 AEST 1989


[lots of previous references about sizeof(zero[0]) being non-zero...]

  Unless, of course, zero is declared

void zero[0];

  I have met a compiler (on CP/M-86, of all things!) that allowed this.
And yes, zero++ did INDEED equal zero.

  I just post 'em like I see 'em.

swatt at cup.portal.com
preferred mailing:  ...!zok!wattres!steve



More information about the Comp.lang.c mailing list