Article View: comp.lang.c
Article #1230Re: does an expression in a logical statement need parenthesis for proper evaluation?
From: Oodini
Date: Fri, 06 Nov 2026 22:41
Date: Fri, 06 Nov 2026 22:41
9 lines
1411 bytes
1411 bytes
Le 06/11/2026 ร 00:42, Lynn McGuire a รฉcritย : > Does an expression in a logical statement need parenthesis for proper > evaluation in C and/or C++? No, but adding parentheses may be wished to make explicit the evaluation. Ie, it is suggested by MISRA C++:2023 : https://www.mathworks.com/help/bugfinder/ref/misracpp2023rule8.0.1.html
Technical Details
Message-ID:
<6aee5786$0$28052$426a34cc@news.free.fr>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!nntp.terraraq.uk!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-a.proxad.net!nnrp5-1.free.fr!not-for-mailReferences:
<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!nntp.terraraq.uk!news.gegeweb.eu!gegeweb.org!usenet-fr.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-a.proxad.net!nnrp5-1.free.fr!not-for-mail Date: Fri, 6 Nov 2026 23:41:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: svdbg_@free.fr Subject: Re: does an expression in a logical statement need parenthesis for proper evaluation? Newsgroups: comp.lang.c++,comp.lang.c References: <11cj4a0$23796$1@dont-email.me> Content-Language: fr From: Oodini <svdbg@free.fr> In-Reply-To: <11cj4a0$23796$1@dont-email.me> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Lines: 9 Message-ID: <6aee5786$0$28052$426a34cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 06 Nov 2026 23:41:10 CET NNTP-Posting-Host: 89.88.146.136 X-Trace: 1794004870 news-4.free.fr 28052 89.88.146.136:10922 X-Complaints-To: abuse@proxad.net