Let's suppose you have 8-bit of memory cell.
The question is that how you can exchange the contents of every two cells without using looping like For-Next?
For example, let's assume the value 10011101 is sitting in the 8-bit memory cell.
So, the desired value will be 01101110.
The answer will be posted shortly.
1 comment:
Based on my answer, it could be done in 5~6 lines of code in standard C style.
Post a Comment