Computer Science for IGCSE & O level - Data Representation (Section 9 - No. 44)

What is the primary difference between a logical shift and an arithmetic shift?
Logical shifts involve shifting bits to the left, while arithmetic shifts shift to the right.
Arithmetic shifts preserve the sign bit, logical shifts do not.
Logical shifts are used for multiplication, arithmetic shifts are used for division.
There is no real difference; the terms are used interchangeably.

Explanation

Arithmetic shifts preserve the sign of the number. Logical shifts ignore the sign bit.

Comments (0)

Advertisement