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.
Sign up free to see the answer and a step-by-step explanation.