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,352
    Likes Received:
    382
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice