CSCI guys : Puzzle

Discussion in 'OT Technology' started by dtfromep, Feb 16, 2004.

  1. dtfromep

    dtfromep New Member

    Joined:
    Oct 11, 2003
    Messages:
    1,674
    Likes Received:
    0
    Location:
    Saint Paul, MN
    I have spent hours on this assignment, to be written in C, with only (~ ! & ^ | + << >>) operators. A sample problem would be to write a function isGreater(int x, int y){} where it returns 1 if x is greater than y and 0 otherwise. This would not be a hard problem, except that we cannot use conditionals or loops...straightline code only :wtf:

    :bowdown: to anyone who can help me out with such a problem
     

Share This Page