122,945 views
0 votes
0 votes
A video streaming website uses 32-bit integers to count the number of times each video is played. in anticipation of some videos being played more times than can be represented with 32 bits, the website is planning to change to 64-bit integers for the counter. which of the following best describes the result of using 64-bit integers instead of 32-bit integers? a. 2 times as many values can be represented. 32 times as many values can be represented. 2^32 times as many values can be represented. 32^2 times as many values can be represented. I know the answer is 2^32 but can someone explain it to me?

User Thetarro
by
2.3k points

1 Answer

17 votes
17 votes

Answer:

2³² times as many values that can be represented

Step-by-step explanation:

A 64 bit register can hold 2⁶⁴ different values, while a 32 bit register can hold 2³² different addresses

Therefore, a 64 bit can represent 2⁶⁴ ÷ 2³² = 2³² times as many values as can be represented by 32-bit

Therefore, the 64 bit can represent 2³² times as many values that can be represented by a 32 bit integer