how can i interchange every 2 bits in a byte like if 10 01 10 01 is input then output shud be 01 10 01 10. Please help me.
how can i interchange every 2 bits in a byte like if 10 01 10 01 is input then output shud be 01 10 01 10. Please help me.
It could be done with bit shifts and masks. A lookup table might also be useful.
Post the code you have thus far.