
David W. answered 12/08/22
Experienced Prof
One's complement:
4 bits 0xE 1110
8 nits 1111 1110
The two's complement of a negative number is the one's complement plus 1
1111 1110 + 0000 0001 = 1111 1111
in Hex, this is 0xFF

David W.
No. 0x7 is the largest 4-bit number (left bit is the sign). "one's complement plus 1" only applies to negative values.12/08/22
Ej N.
so if I had 0x7 instead of 0xe would I approach it the same way?12/08/22