114k views
4 votes
If we add four 16 bit unsigned numbers and store the result in a register, what should be the minimum width of the register to hold the complete result? A) 17 bit B) 18 bit C)19 bit D)16 bit

User Aychedee
by
7.3k points

1 Answer

4 votes

Answer: 17 BIT

Step-by-step explanation:

To add four 16-bit unsigned numbers, the maximum possible sum would be obtained when all four numbers are the maximum value of 16 bits, which is 65535. The sum of four maximum 16-bit unsigned numbers would be 4 * 65535 = 262140.

Since 262140 can be represented using 17 bits (2^17 - 1 = 131071 < 262140 < 2^18 - 1 = 262143), a 17-bit register would be sufficient to store the complete result of the addition.

User Kysha
by
8.2k points