book-programming Zhu Ji Nanxiong-First chapter

Source: Internet
Author: User

The first chapter ... October 25, 2016 22:41:45

A 143,000 number can be stored in the 1MB storage space, and if each number is represented by a 32-bit integer , the 1MB storage space can be stored 250,000 a number;

I can see it in a daze. Answer:

1MB (bytes) =1024kb (bytes) =1024*1024bytes
1024*1024/7 is approximately 149,796

But sometimes for convenience of estimation, 1024 is usually taken as 1000, i.e.
1mb=1000kb=1000,000byte
1000,000/7 is about 142,857, estimated, almost 143000.
This value should come in this way;

143,000 was clear, but the 250,000 continued to blur ... Read carefully several times, the original is to each < number > as each < number >: A number consisting of 7 numbers;

Make (see) understand after: 32-bit integer is 4 bytes, 1000,000/4 = 250,000


Not to be continued ...



book-programming Zhu Ji Nanxiong-First chapter

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.