Deutsch English Français Italiano |
<uubudh$3ktle$1@i2pn2.org> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!weretis.net!feeder6.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail From: fir <fir@grunge.pl> Newsgroups: comp.lang.c Subject: Re: while(T[l]<p & l<=r) Date: Sun, 31 Mar 2024 17:10:47 +0200 Organization: i2pn2 (i2pn.org) Message-ID: <uubudh$3ktle$1@i2pn2.org> References: <uu109u$3798b$1@i2pn2.org> <uu3kqb$3i23g$1@dont-email.me> <kXeNN.99578$24ld.63941@fx07.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 31 Mar 2024 15:10:43 -0000 (UTC) Injection-Info: i2pn2.org; logging-data="3831470"; mail-complaints-to="usenet@i2pn2.org"; posting-account="+ydHcGjgSeBt3Wz3WTfKefUptpAWaXduqfw5xdfsuS0"; User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24 X-Spam-Checker-Version: SpamAssassin 4.0.0 In-Reply-To: <kXeNN.99578$24ld.63941@fx07.iad> Bytes: 1707 Lines: 23 Scott Lurndal wrote: > Janis Papanagnou <janis_papanagnou+ng@hotmail.com> writes: >> On 27.03.2024 12:35, fir wrote: >>> tell me, is while(T[l]<p & l<=r) the same as while((T[l]<p)&&(l<=r)) >> >> 1. As long as K&R precedences still hold you don't need the inner >> parentheses; '<' and '<=' has higher precedence than '&' and '&&'. > > While true, the parenthesis can be helpful to the reader > and have no adverse effects. > i think i will use the rule if the operator precedences are right (and here ARITHM < REL < LOG rule is ruight) i will not use parenthesis but when its wrong i will use them (probably even if they are not needed) if(!(i%16)) for example i must use it becouse if(!i%16) sadly and unproperly dont work