Daniel B. answered 02/01/23
PhD in Computer Science with 42 years in Computer Research
1)
Notice that 65535 = 216 - 1.
That means 65535 is the largest integer that can fit into 16 bit-unsigned representation.
Therefore in binary it is
1111111111111111
2)
There are a couple ways of converting negative numbers.
For -725 this one might be easier; hopefully this is how you did it in school.
- Convert +725 to 16-bits binary ==> 0000001011010101
- Form the complement 1111110100101010
- Add 1 1111110100101011