Deutsch English Français Italiano |
<vhr2pa$qid$1@reader2.panix.com> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!eternal-september.org!feeder2.eternal-september.org!panix!.POSTED.spitfire.i.gajendra.net!not-for-mail From: cross@spitfire.i.gajendra.net (Dan Cross) Newsgroups: comp.unix.programmer Subject: Re: Command Languages Versus Programming Languages Date: Fri, 22 Nov 2024 23:06:18 -0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Message-ID: <vhr2pa$qid$1@reader2.panix.com> References: <uu54la$3su5b$6@dont-email.me> <87h67zrtns.fsf@doppelsaurus.mobileactivedefense.com> <vhqkm6$7dv$1@reader2.panix.com> <vhr0fj$1bq0o$1@dont-email.me> Injection-Date: Fri, 22 Nov 2024 23:06:18 -0000 (UTC) Injection-Info: reader2.panix.com; posting-host="spitfire.i.gajendra.net:166.84.136.80"; logging-data="27213"; mail-complaints-to="abuse@panix.com" X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: cross@spitfire.i.gajendra.net (Dan Cross) Bytes: 2450 Lines: 43 In article <vhr0fj$1bq0o$1@dont-email.me>, James Kuyper <jameskuyper@alumni.caltech.edu> wrote: >On 11/22/24 14:05, Dan Cross wrote: >> In article <87h67zrtns.fsf@doppelsaurus.mobileactivedefense.com>, >> Rainer Weikusat <rweikusat@talktalk.net> wrote:... >>> char **argv >>> >>> declares an array of pointers >> >> No, it declares a pointer to a pointer to char. > >Agreed. > >>> (as each pointer in C points to an array) >> >> That's absolutely not true. A pointer in C may refer to >> an array, or a scalar. Consider, >> >> char c; >> char *p = &c; >> char **pp = &p; > >Not actually relevant. For purposes of pointer arithmetic, a pointer to >a single object is treated as if it pointed at the first element of a >1-element array of that object's type. a) Please stop emailing me this stuff _and_ posting it here. I have asked you this in the past, and previously you'd said that it was because you switched news readers. That's fine, but that was a year ago or more. b) What you are referring to, from the section on Additive Operators (6.5.7 in n3220; 6.5.6 in C99) is in reference to pointer arithmetic; the statement that I was replying to was a general statement about pointers, independent of issues of pointer arithmetic. That is, it is not the case that, "each pointer in C points to an array". The above example, to which you replied, is a counterpoint to the general statement. So while what you are saying is true, it doesn't change the general point. - Dan C.