Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!ima!haddock!karl From: karl@haddock.ISC.COM (Karl Heuer) Newsgroups: comp.lang.c Subject: Re: char (*a)[] (was: Style [++i vs i++]) Message-ID: <932@haddock.ISC.COM> Date: Wed, 12-Aug-87 17:34:50 EDT Article-I.D.: haddock.932 Posted: Wed Aug 12 17:34:50 1987 Date-Received: Sat, 15-Aug-87 02:24:29 EDT References: <8298@brl-adm.ARPA> <587@cblpe.ATT.COM> <189@xyzzy.UUCP> <1987Aug10.192923.7879@sq.uucp> <234@nvpna1.UUCP> Reply-To: karl@haddock.ima.isc.com.UUCP (Karl Heuer) Organization: Interactive Systems, Boston Lines: 9 In article <234@nvpna1.UUCP> strouckn@nvpna1.UUCP (Louis Stroucken 42720) writes: >[In the declaration "main(a) char (*a)[]; ..."] Please note that "a" is a >formal argument of main!! K&R [says] `...formal parameters declared "array >of..." are adjusted to read "pointer to...".' Which is irrelevant, since "a" is not an array. It is a pointer to an array (note the parens in the declaration), which is not converted. Karl W. Z. Heuer (ima!haddock!karl or karl@haddock.isc.com), The Walking Lint