Question discussion

If the compiler of the programming language occupies 2-byte memory space for an unsigned integer, then what is the range of the unsigned in…

359469Medium DSSSB TGT Computer Science 0 replies 0 views
0
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?
  • A−32768 to 32767
  • B0 to 65535
  • C0 to 65536
  • D0 to 32767
Correct answer: B

Explanation

With 2 bytes (16 bits), an unsigned integer ranges from 0 to 2¹⁶ − 1 = 65,535.

Discussion 0

Nobody has replied yet. Start the discussion!