Question
What is the value of the following 8-bit integer after all statements are executed?
int x = 1;
x = x << 7;
x = x >> 7;
Answer: Option D
Was this answer helpful ?
Right shift of signed integers is undefined, and has implementation-defined behaviour.
Was this answer helpful ?
More Questions on This Topic :
Question 1.
The size_t integer type in C++ is?
....
Submit Solution