🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #749

Re: does an expression in a logical statement need parenthesis for proper evaluation?

#749
From: Lynn McGuire
Date: Fri, 06 Nov 2026 01:07
27 lines
1831 bytes
On 11/5/2026 5:42 PM, Lynn McGuire wrote:
> Hi,
> 
> Does an expression in a logical statement need parenthesis for proper 
> evaluation in C and/or C++?
> 
> In other words, should
> 
> if (j1 * i1 < 1) {
>      goto L463;
> }
> 
> be
> 
> if ((j1 * i1) < 1) {
>      goto L463;
> }
> 
> Thanks,
> Lynn

Thank you all very much.  BTW, there were parenthesis in the old Fortran 
code but F2C stripped them out.  I put them back in for my comfort as I 
see them.

Lynn
Technical Details
Message-ID: <11cj994$24m06$1@dont-email.me>
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!.POSTED!not-for-mail
References: <11cj4a0$23796$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!.POSTED!not-for-mail
From: Lynn McGuire <lynnmcguire5@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, 5 Nov 2026 19:07:46 -0600
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <11cj994$24m06$1@dont-email.me>
References: <11cj4a0$23796$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 06 Nov 2026 01:07:49 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="2250758"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19efdlIjFLf7E9hjOLADKLQ7K3ySCt1JRU="; posting-host="87683cc298b609ae1cc546740cf043eb"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:ah6eD9PPds0MaN/kyUrQh4xf+hE= sha256:Ja9SSSZm/RHuDUoICF91uTZZiv7hY1NujjgnOQWBQZc=
	sha1:/VlEzDW06igCgG6jn8XG1Hj/Wyw= sha256:R2FhZbjII1/ZWZkAq9iwnoLhZG66TrqvYlnf2IVDXKg=
Content-Language: en-US
In-Reply-To: <11cj4a0$23796$1@dont-email.me>