Take this byte into consideration.
Let's say we did a left shift of 2 bits on this byte.
All bits shift to the left two spaces, creating the new
byte:
Remember the two zeros on the left of the byte before we shifted? They are now gone, lost forever, which is what we
wanted. The same is true when you do a right shift. Bits on the
right of the byte will be lost.
When the author of your book said:
Code:
it ¡s commonly said that they fall into the
mythical bit bucket, a place where discarded bits
end up, presumably so they can be reused...
He was trying to make a joke, I hope. Because what he said
is a total lie, and 100% false.