If the compiler of the programming language occupies 2-byte memory space for an unsigned
If the compiler of the programming language occupies 2-byte memory space for an unsigned
integer, then what is the range of the unsigned integer?
Show answerHide answer
Correct answer: (B) 0 to 65535
Explanation
2 bytes = 16 bits. An unsigned integer has no sign bit, so it holds 0 to 2¹⁶ − 1 = 0 to 65535.