81.
In C, right shifting a negative signed integer gives an implementation-defined result.
Answer: A
Correct answer: True
The standard leaves it to the implementation whether the vacated high bits are filled with zeros or with copies of the sign bit. Most compilers perform an arithmetic shift that preserves the sign, but portable code should not rely on it.
Please log in or register to report this question.