I am trying to figure out how exactly arithmetic bit-shift operators work in C, and how it will affect signed 32-bit integers.
To make things simple, let\'s say we w
In the 32 bit compiler
x = x >> 31;
here x is the signed integer so 32nd bit is sign bit.
final x value is 100000...000. and 32nd bit indicate -ive value.
here x value implement to 1's compliment.
then final x is -32768