I have a byte A and byte B. I am looking for byte C which is every other bit from A and every other bit from B. So if A = 10011010 and B = 01110010 then C would be 10110101 where 1011 is every other bit from A and 0101 is every other bit from B. Can anyone help me with this?
Share
Try this:
See it working online: ideone