byte b = -42; int result = b <<4; (1).After converting decimal value to bits & performing bit shift,how do we calculate back the binary value of the result.? It looks simple at times,but not very sure about how it works.Pl.help.
Geetha, Here is the quick answer compliment the binary number and add 1 to it. for that you to represent all the bits of the number that is if it is int then 32 digits and if it is long 64 digits hope this helps Kareem