Subject: Re: Question regarding the array of size 0.
To: John Franklin <email@example.com>
From: Johan Danielsson <firstname.lastname@example.org>
Date: 03/20/2001 20:28:05
John Franklin <email@example.com> writes:
> > Not in C.
> Actually you can (see below).
No you can't. This is from C99:
126.96.36.199 Array declarators
In addition to optional type qualifiers and the keyword static, the [
and ] may delimit an expression or *. If they delimit an expression
(which specifies the size of an array), the expression shall have an
integer type. If the expression is a constant expression, it shall
have a value greater than zero. [...]
> What follows was done on a NetBSD 1.5 system.
Which uses gcc.
I think they use a similar example in the spec, but with an array size