Discussion: comparison
Afficher un message
Vieux 21/10/2007, 12h11   #6
santosh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: comparison

ndun78@gmail.com wrote:

>
>> > Is there a reason for avoiding the obvious
>> > status_bit = (i < j);

>>

> I think that it is not guaranteed to get only 1 or 0 as a result of i
> < j, this may result in 0 or non zero value is it not?


No, the relational operators yield either 1 or 0.

  Réponse avec citation
 
Page generated in 0,05408 seconds with 9 queries