Sujet : Re: technology discussion → does the world need a "new" C ?
De : ben (at) *nospam* bsb.me.uk (Ben Bacarisse)
Groupes : comp.lang.cDate : 10. Jul 2024, 14:23:22
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <8734ohpeid.fsf@bsb.me.uk>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Gnus/5.13 (Gnus v5.13)
Kaz Kylheku <
643-408-1753@kylheku.com> writes:
- int (f[3])(void) { }, function returning array of 3 int,
is a constraint violation.
Nit: this is an array of three functions. Also a constraint violation
and a syntax error as array declarations can't be followed by {}s. The
impossible declaration you want would be written
int F(void)[3] {}
-- Ben.