The question is
What are two's complement numbers of the following 16-bit numbers?
1.0x3f9d
My answer is:
0011111110011101 in binary because 0x3f9d is a positive number.
However, some people said that the answer is:
1100000001100011
I am confusing because 1100000001100011
is a negative number. Which one is the right answer?
0011111110011101
is correct.What's this got to do with C though? – DeiDei