Sujet : Re: while(T[l]<p & l<=r)
De : fir (at) *nospam* grunge.pl (fir)
Groupes : comp.lang.cDate : 30. Mar 2024, 20:30:03
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <uu9p7m$3icae$1@i2pn2.org>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
Tim Rentsch wrote:
scott@slp53.sl.home (Scott Lurndal) writes:
>
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.
>
Certainly extra parentheses can be helpful to some readers.
>
Considered as a question of fact, the proposition that extra
parentheses have no adverse effects is false. It may be the
case that the adverse effects are thought to be unimportant
relative to some proposed benefit, but that is a question of
opinion rather than a question of fact.
>
what a lamas you are ...
its quite oposite it is using parenthesis and && instead of & and || insetad | makes c source code lost its character - its generaly weird
world that i noticed it recenty not 20 years ago