Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!att!chinet!les From: les@chinet.chi.il.us (Leslie Mikesell) Newsgroups: comp.lang.c Subject: Re: C problems Message-ID: <8639@chinet.chi.il.us> Date: 5 Jun 89 22:38:55 GMT References: <29@ <236100015@mirror> <13566@haddock.ima.isc.com> Reply-To: les@chinet.chi.il.us (Leslie Mikesell) Organization: Chinet - Public Access Unix Lines: 20 In article <13566@haddock.ima.isc.com> karl@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