Multiple choice

If the word size is 16 bit, ~0xc5 will be

  1. 0x3a

  2. 0xff3a

  3. 0x5c

  4. none of above

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

0xc5 in binary (16-bit) is 0000 0000 1100 0101. The bitwise NOT (~) flips all bits to 1111 1111 0011 1010, which is 0xff3a in hexadecimal.