Question DSA-BIT-0058
MediumWhy is right-shifting a negative signed integer in C implementation-defined?
- A.
It isn't
- B.
Some machines fill with the sign bit (arithmetic shift) and others with 0 (logical shift)
- C.
It is the same as division by 2 always
- D.
It always crashes
Sign up free to see the answer and a step-by-step explanation.