Sujet : Re: while(T[l]<p & l<=r)
De : 433-929-6894 (at) *nospam* kylheku.com (Kaz Kylheku)
Groupes : comp.lang.cDate : 28. Mar 2024, 19:24:45
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <20240328112346.340@kylheku.com>
References : 1 2 3 4
User-Agent : slrn/pre1.0.4-9 (Linux)
On 2024-03-28, David Brown <
david.brown@hesbynett.no> wrote:
On 28/03/2024 15:14, 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.
>
A couple of space characters would also not go amiss in aiding the reader.
But that "fir" *is* a space character.
-- TXR Programming Language: http://nongnu.org/txrCygnal: Cygwin Native Application Library: http://kylheku.com/cygnalMastodon: @Kazinator@mstdn.ca