Ask Question

A news website uses 32-bit integers to count the number of times an article has been viewed. The website is becoming more popular, and expects some of the articles to exceed the number of views that can be represented with 32 bits. In anticipation of this, the website is planning to change to 64-bit integers for the view counter. Which best describes the result of using 64-bit integers instead of 32-bit integers?

+5
Answers (1)
  1. 15 September, 07:25
    0
    2^32 times as many values can be represented

    Explanation:

    32-bit. This means that the number is represented by 32 separate one's and zero's. 32 bits of 2 possible states = 2^32=4,294,967,296 possible values.

    Integer meaning that only whole multiples of one are accepted.

    Signed meaning that negative values are accepted. This halves the number of possible positive values (roughly), so the largest number you can represent is 2^31-1=2,147,483,647, but instead of 0, the smallest number you can represent is - 2,147,483,648. An unsigned 32-bit integer, by contrast, can represent anything from 0 to 4,294,967,295.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “A news website uses 32-bit integers to count the number of times an article has been viewed. The website is becoming more popular, and ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers