Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <uu3kqb$3i23g$1@dont-email.me>
Deutsch   English   Français   Italiano  
<uu3kqb$3i23g$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.lang.c
Subject: Re: while(T[l]<p & l<=r)
Date: Thu, 28 Mar 2024 12:37:39 +0100
Organization: A noiseless patient Spider
Lines: 22
Message-ID: <uu3kqb$3i23g$1@dont-email.me>
References: <uu109u$3798b$1@i2pn2.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 28 Mar 2024 11:37:47 +0100 (CET)
Injection-Info: dont-email.me; posting-host="155435c3f40053ae5c3f5cbd325b2209";
	logging-data="3737712"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+Ap84ZZuW4eytThbYBR1/Z"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101
 Thunderbird/45.8.0
Cancel-Lock: sha1:80+YSfjs/wDZYREPylq20iMA9zY=
In-Reply-To: <uu109u$3798b$1@i2pn2.org>
X-Enigmail-Draft-Status: N1110
Bytes: 1901

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 '&&'.
2. In this case where you compare predicate expressions that
evaluate to '0' and '1' on both sides of '&' and '&&' respectively
these expressions are (while not the same) equivalent _here_. If
you don't want to operate on bits but want to express a boolean
conjunction you should use '&&', though.

> i was unable ro remember that

You could look that up if you cannot remember that. Wikipedia[*]
has a page with a lot information, and a concise list you can,
for example, find here:
https://www.cs.uic.edu/~i109/Notes/COperatorPrecedenceTable.pdf

Janis

[*] https://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B