compare a large number of variables
- From: "Einar" <orneinar@xxxxxxxx>
- Date: 16 Aug 2005 08:12:35 -0700
Hi,
I wonder if there is a nice bit twiddling hack to compare a large
number of variables?
If you first store them in an array, you can do:
for (i = 0; i < n; i++) {
if (array[i] != value) {
/* array[i] differs from value, do something*/
}
}
but I dont have the variables in an array, and would like to figure out
a nice oneliner.
best regards.
E.
.
- Follow-Ups:
- Re: compare a large number of variables
- From: freak
- Re: compare a large number of variables
- From: AM
- Re: compare a large number of variables
- From: Jack Klein
- Re: compare a large number of variables
- From: Keith Thompson
- Re: compare a large number of variables
- From: Peteris Krumins
- Re: compare a large number of variables
- From: Eric Sosman
- Re: compare a large number of variables
- From: Peteris Krumins
- Re: compare a large number of variables
- Prev by Date: Re: is all the .obj or .o file compatible?
- Next by Date: Re: compare a large number of variables
- Previous by thread: Coding the DJB way?
- Next by thread: Re: compare a large number of variables
- Index(es):
Relevant Pages
|