Home > Back-end > Why said 16 short type 1 is the result of the negative one?
Why said 16 short type 1 is the result of the negative one?
Time:10-04
Repeatedly plus 15 zero type is short of the minimum yes ah (ignore the sign bit), so why is 16 a negative one?
CodePudding user response:
Signed is the highest number of 1 is negative. 1000, 0000, 0000, 0000==- 32768 1111, 1111, 1111, 1111==1 0111, 1111, 1111, 1111==32767 See don't understand?
CodePudding user response:
Because sixteen zero is zero, sixteen zero minus one is sixteen, so short 16 a is negative,