Subject: Re: Question regarding the array of size 0.
To: John Franklin <firstname.lastname@example.org>
From: Johan Danielsson <email@example.com>
Date: 03/20/2001 20:28:05
John Franklin <firstname.lastname@example.org> writes:
> > Not in C.
> Actually you can (see below).
No you can't. This is from C99:
18.104.22.168 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