Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!necntc!ames!ptsfa!ihnp4!homxb!genesis!hotlg!anumb!eao From: eao@anumb.UUCP (e.a.olson) Newsgroups: comp.unix.wizards Subject: Re: have I found a bug in K&R? Message-ID: <127@anumb.UUCP> Date: Thu, 1-Oct-87 00:05:53 EDT Article-I.D.: anumb.127 Posted: Thu Oct 1 00:05:53 1987 Date-Received: Mon, 5-Oct-87 04:39:11 EDT References: <517@hubcap.UUCP> Organization: AT&T Bell Labs, Andover MA Lines: 13 > on page 110 of K&R it says: > > "...(argv) is a pointer to an array of character strings..." > > but since the primary-expression operator [] has higher priority than > the unary operator *, then isn't it more correct to say that argv > (which is defined as char *argv[]) is an array of pointers to character > strings? > > -Mike Marshall hubcap@hubcap.clemson.edu ...!hubcap!hubcap The point is that in C, a 'character string' is referred to by a pointer to it.