Re: A quiz...

From: Alexander van Koppen (alexk@odie.et.fnt.hvu.nl)
Date: 06/09/96


Hi !

> I just came up with this and wanted to see if anyone else could figure it
> out.

> Without using an if statement or the: x == 5 ? "yes" : "no" format (I forget
> it's technical name) can you do the following (and in the least amount of
> code too)

Tried 

      #define MAKE_LOWEST_EVEN(x)  (x &= ~1)
or    #define LOWEST_EVEN(x)       (x &  ~1)

At least, that's the shortest I can come up with (without using assemblers)..

See ya !
  Alex.



This archive was generated by hypermail 2b30 : 12/18/00 PST