211k views
3 votes
A variable that can have values only in the range 0 to 65535 is a :

a. Two-byte unsigned int.
b. Four-byte int.
c. Two-byte int.
d. Four-byte unsigned int.

1 Answer

1 vote

Answer:

a.

Step-by-step explanation:

Two bytes have 2 times 8 bits is 16 bits.

Max value that can be expressed is 2¹⁶-1 = 65535

User Summit
by
5.2k points