Machine-translated by Google. Questions are authored in English.
Top

Bitwise Operators Questions and Answers

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.

Loading…

Other Subjects

Tags: Bitwise Operators Questions and Answers || Bitwise Operators MCQ Questions and Answers || Bitwise Operators GK Questions and Answers || Bitwise Operators GK MCQ Questions || Bitwise Operators Multiple Choice Questions and Answers || Bitwise Operators GK || GK on Bitwise Operators || C Programming Questions and Answers || C Programming MCQ Questions and Answers || C Programming GK Questions and Answers || GK on C Programming