You Are Here::Home > JAVA > Operators -
Discussion
Q.
An unsigned shift operation of a negative number generally returns the result in a ____________.
A.
Negative number
B.
positive number
C.
both a and b
D.
all the above
Answer:
Option
B
Explaination:
An unsigned shift operation of a negative number generally returns the result in a positive number, because any unsigned right shift operation replaces the leading sign bit with a zero which indicates a positive number.