extern char *foo vs. extern char foo[]
Stephen Clamage
steve at taumet.com
Thu Jun 7 01:45:51 AEST 1990
In article <6273 at wolfen.cc.uow.oz> pejn at wolfen.cc.uow.edu.au (Paul Nulsen) writes:
>My argument is not that there is internal inconsistency in the treatment of
>arrays by C.
Ah, but there is an internal inconsistency. The problem is that in C,
arrays are not first-class data types. As you note, there are
contexts in which a mention of an array is converted to a pointer to
its first element, and contexts in which this does not occur. By me,
that's inconsistent, and is also the source of all the confusion.
--
Steve Clamage, TauMetric Corp, steve at taumet.com
More information about the Comp.lang.c
mailing list