Computer Science, asked by sahanaget, 3 months ago

Give two differences between << and >> operators,​

Answers

Answered by priyanshibhardwaj06
1

Answer:

The unsigned right shift operator >>> shifts a zero into the leftmost position, while the leftmost position after >> depends on sign extension. In simple words >>> always shifts a zero into the leftmost position whereas >> shifts based on sign of the number i.e. 1 for negative number and 0 for positive number

Similar questions