Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does -54 does not become positive after right shift?

positive right shift
0
Posted

Why does -54 does not become positive after right shift?

0

>> is a signed shift, that means the sign bit will stay there after right shift. In other words, fill all the spaces produced by the shift by the original sign.On the opposite, >>> is an unsigned shift; zero will fill all the spaces no matter what is the original sign.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123