Article View: comp.lang.c
Article #1194Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Keith Thompson
Date: Fri, 06 Nov 2026 05:35
Date: Fri, 06 Nov 2026 05:35
11 lines
1599 bytes
1599 bytes
James Kuyper <jameskuyper@alumni.caltech.edu> writes:
[...]
> Otherwise, one or more parentheses
> might solve the problem.
Technically correct (the best kind of correct), but *two* or more
parentheses are even better.
--
Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */
Technical Details
Message-ID:
<11cjou8$28l4t$1@kst.eternal-september.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mailReferences:
<11cj4a0$23796$1@dont-email.me> <11cj8ch$24f93$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!kst.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson <Keith.S.Thompson+u@gmail.com> Newsgroups: comp.lang.c++,comp.lang.c Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Date: Thu, 05 Nov 2026 21:35:02 -0800 Organization: None to speak of Lines: 11 Message-ID: <11cjou8$28l4t$1@kst.eternal-september.org> References: <11cj4a0$23796$1@dont-email.me> <11cj8ch$24f93$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain Injection-Date: Fri, 06 Nov 2026 05:35:05 +0000 (UTC) Injection-Info: kst.eternal-september.org; logging-data="2380957"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/47Oo5vBPrE24G9qTSCrBI"; posting-host="470bea5a7c525a052be348861b0f0884" User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:LtSA+Y4iBW5hQotri3mNpEqIjL4= sha256:l6HjgNPFsAorPVBv/hFoO/mQGrSA66FvxiRPrZbAEWs= sha1:v3lFBmXaG5fKxS6IYCFZoE1L1sI= sha256:afPzynMA6oefOGm7NlWAPTWyycPR1N4Ux/BOcsxLWI4=