signed >> operator java,
April 28, 2008 at 8:23 PM
For example, if we take a negative number as -50 then this value is represented in binary as 11001110 then the expression "-50>>2"; will return the result as 11110011 or -13 in decimal.
the above example is not very clear the binary value of 50 is 110010 -50>>2 =10001100 why do you convert it ones complemt method it is MSB method?
View All Comments
| View Tutorial