Path: csiph.com!aioe.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: C precedence - relative comparisons before equality operators Date: Mon, 06 Sep 2021 17:20:51 -0700 Organization: None to speak of Lines: 36 Message-ID: <87tuixfd7g.fsf@nosuchdomain.example.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="b8e802e2add04d899fe3d6b194bea3aa"; logging-data="21906"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JX3tts+bF8ZDwGSB96OHC" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:/ZZ7U1Dtsk13IttTgKIsAvlLEKI= sha1:wc1jMo5mLdXqeIVjq6w/WnJ0yDc= Xref: csiph.com comp.lang.c:162653 James Harris writes: > On 06/09/2021 09:27, James Harris wrote: >> On 05/09/2021 23:29, Stefan Ram wrote: > ... > >>>    Kernighan/Ritchie wrote: >>> >>> |The == (equal to) and the != (not equal to) operators are >>> |analogous to the relational operators except for their lower >>> |precedence. (Thus a>> |the same truth-value.) >> Do you have a link to the source of that? > > No need to reply. I found it in A.7.10 of > > https://[SNIP]/The_C_Programming_Language.pdf That is almost certainly a pirated copy of K&R2, uploaded by an individual at the institution who either did not know or did not care that it's a copyright violation. (Let's not have an argument about whether "pirated" is the appropriate word, please.) My paper copy of that book has a copyright notice just before the table of contents. It was omitted from the PDF, I presume deliberately. If Bell Labs or Prentice Hall had ever given permission for K&R2 to be freely published, I'm sure someone here would have heard about it. Legitimate copies of K&R2 are available from various vendors, as are used copies of K&R1 for those who are interested in the historical context. -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */