Auto variable with sizeof == 0

chris at mimsy.UUCP chris at mimsy.UUCP
Fri Feb 6 01:59:43 AEST 1987


>In article <5258 at mimsy.UUCP> I wrote:
>>[for automatic array declarations of the form `int a[];' valid subscripts
>>are in the range [0..0).

In article <409 at mipos3.UUCP> pinkas at mipos3.UUCP (Israel Pinkas) writes:
>Wrong.

Not so.

>There are no valid subscripts to the array.

That is what I said.  The valid subscripts are in the range [0..0).
Perhaps you would prefer the [0..0[ form?  (I always thought that
form particularly vile.)  The notation [0..0) means the half-open
interval between zero and zero, i.e., the null set.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7690)
UUCP:	seismo!mimsy!chris	ARPA/CSNet:	chris at mimsy.umd.edu



More information about the Comp.lang.c mailing list