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

reverse a number using bitwise operators

Discussion in 'C' started by pratyusha s, Sep 13, 2011.

  1. pratyusha s

    pratyusha s New Member

    Joined:
    Sep 13, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    can someone please tell me how to reverse a number using bitwise operators??
     
  2. sainishanth

    sainishanth New Member

    Joined:
    Feb 8, 2012
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    use shift right operator
     
  3. gpk kishore

    gpk kishore New Member

    Joined:
    Jun 30, 2011
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    0
    give a clarity that whether you want to reverse a binary number or decimal number
     
  4. dhilipmaths123

    dhilipmaths123 New Member

    Joined:
    Sep 14, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    There are welldefined functions in mathematica/matlab to reverse whatever you want.Maybe you can look at their codes and develop for your use.
     

Share This Page