I want to ask how to reverse for example number 11 (which is 1011 in binary numeral system) to reversed number which is equal to 13 (which is 1101 in binary numeral system).
I was searching in google but i didn't find anything helpful and simple to understand. If anyone has an idea for simple explanation, please let me know.

Couple of questions:

  • Are you using a fixed bit count? For instance, what would you do with the number 6? If we say it's 110, the reverse is 011 = 3. If we said it's the 4-bit number: 0110. Then the reverse is 0110 = 6, which is quite different.
  • I assume you have, but have you considered signed values? Or are you assuming everything is unsigned?