binary operator "<"

Posted by md004 on Stack Overflow See other posts from Stack Overflow or by md004
Published on 2010-05-13T21:17:34Z Indexed on 2010/05/13 21:24 UTC
Read the original article Hit count: 147

Filed under:
|

Consider this expression as a "selection" control structure on integer "x": 0 < x < 10, with the intention that the structure returns TRUE if "x" is in the range 1..9.

  1. Explain why a compiler should not accept this expression. (In particular, what are the issues regarding the binary operator "<"?
  2. Explain how a prefix operator could be introduced so the expression can be successfully processed.

© Stack Overflow or respective owner

Related posts about binary

Related posts about homework