C problems
Leslie Mikesell
les at chinet.chi.il.us
Tue Jun 6 08:38:55 AEST 1989
In article <13566 at haddock.ima.isc.com> karl at haddock.ima.isc.com (Karl Heuer) writes:
>>char **argv; /* since you are learning it may be easier to understand
>> this syntax better by defining it as: char *argv[] */
>On the other hand, since this use of [] is a special case which exists nowhere
>else in the language (it works *only* for formal arguments), it may be less
>confusing to stick with "char **argv" after all.
Umm, isn't that the same as:
char *list[] = {
"one",
"two",
"three",
0 };
which seems to work as a global definition. Argv is something similar
so the char *argv[]; declaration makes sense.
Les Mikesell
More information about the Comp.lang.c
mailing list