Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Difference between these pointer syntaxes Date: Tue, 16 Aug 2016 08:35:00 -0700 Organization: None to speak of Lines: 43 Message-ID: References: <87r39s8w6c.fsf@bsb.me.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: mx02.eternal-september.org; posting-host="945944de09706c9b4e29b53c9d2efdc2"; logging-data="32333"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19haRJBwe7eZuVnqStNPTno" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:araW4z1uQjCIg33BWo6OFm3eQhw= sha1:FxYaApB3eMF2mFxignSwdlJJhRY= Xref: csiph.com comp.lang.c:92333 BartC writes: > On 16/08/2016 03:13, Keith Thompson wrote: >> BartC writes: >>> If the language lets me write: >>> >>> *A // when A is an array >>> >>> and: >>> >>> p[i] // when p is a pointer (forgetting i[p]...) >>> >>> then there is nothing more to say. > >> Realistically, I expect that you'll continue to post incorrect >> information. > > What's incorrect about the examples above? They're just facts. For > someone trying to get a job done, it's just yet another thing to be > aware of. This was the point of my document. Maybe I should have called > it C Pitfalls. I never said the examples were incorrect. Your claim that arrays and pointers are the same thing is blatantly incorrect. Your statements about the circumstances in which array expressions are converted to pointers are guesswork, and frequently incorrect. And you refuse to learn. [...] > There seems to be a giant elephant in the room illustrated by the > results in that left column. But apparently it's OK if someone > understands what the elephant is doing? We all know about the elephant. The rest of us are willing to understand it. You refuse to even try. > I doubt we're going to agree on this. -- Keith Thompson (The_Other_Keith) kst-u@mib.org Working, but not speaking, for JetHead Development, Inc. "We must do something. This is something. Therefore, we must do this." -- Antony Jay and Jonathan Lynn, "Yes Minister"