Thread
:
Shifting Bytes
View Single Post
Dec 15th, 2006, 4:42 PM
#
1
Sane
Programming Guru
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,869
Rep Power:
5
Shifting Bytes
If I have in my allocated space, an arbitrary value, let's say:
(
Toggle Plain Text
)
1001 1101 1011 0011 0000
1001 1101 1011 0011 0000
How can I right shift, say, the third byte one over?
(
Toggle Plain Text
)
1001 1101
0000
1011 0011
1001 1101 0000 1011 0011
__________________
Waterloo's Canadian Computing Competition (CCC) - Stage 2 Problems, Solutions, and Test Data
Sane
View Public Profile
Find More Posts by Sane