first look at it: MSB is 1. ok so it got to be a negative number.
second all negative numbers are represented by 2's complement
how to recover a number from 2's complement:
invert all bits (make 1 into 0 and 0 to 1)
and add one
that's it.
111...............1010
invert it---> 00000....0101
add 1-------> 00000....0110 which is 6
we know it was negative so answer is -6
Originally posted by Arsho, Ayan:
can someone tell me how do i get the corresponding int value of this
1111111 111111111 11111111 11111010
-Thanks