Does Left Shift sign extend?
Does Left Shift sign extend? Important is >> fills leftmost sign bit (Most Significant Bit MSB) to leftmost bit the after shift. This is called sign extension and serves to preserve the sign of negative numbers when you shift them right. Notice: the left most three bits are one because Read more…