Computer Science, asked by Chitti3087, 9 months ago

Difference between logical shift and arithmetic shift

Answers

Answered by tripathyspandan23
0

Explanation:

Arithmetic shift preserve sign bit, whereas Logical shift can not preserve sign bit. Arithmetic shift perform multiplication and division operation, whereas Logical shift perform only multiplication operation. Arithmetic shift is used for signed interpretation, whereas Logical shift is used for unsigned interpretation.

Shift Left Logical. A shift left logical of one position moves each bit to the left by one. The low-order bit (the right-most bit) is replaced by a zero bit and the high-order bit (the left-most bit) is discarded. ... The picture shows the operation performed on eight bits. The original pattern is 1010 0111 .

An arithmetic right shift is similar to a logical right shift, except that the leftmost bits are filled with the sign bit of the original number instead of 0's.

Similar questions