Wednesday, April 25, 2007

#33

How can you find the minimum or maximum of 2 numbers without using relational operations ?

Answer:

    r = y + ((x - y) & -(x <>
    r = x - ((x - y) & -(x <>

No comments: