1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

C-pro

Discussion in 'C' started by M.Santosh, Sep 10, 2007.

  1. M.Santosh

    M.Santosh New Member

    Joined:
    Sep 10, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    How to check the given number is odd or even with out using moduls operator :(
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,292
    Likes Received:
    365
    Trophy Points:
    83
    Use XOR / AND / OR operation with the last bit.
     
  3. M.Santosh

    M.Santosh New Member

    Joined:
    Sep 10, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    thanku for u help
     

Share This Page