"Learning Notes", "C language" data

Source: Internet
Author: User

1. What Is Data

Life is always with the data, such as weight data, blood pressure data, stock price data and so on. In our use of computer process, will be exposed to a variety of data, there are document data, image data, video data, as well as chat QQ generated text data, with thunder download file data.

2. Classification of data

The data stored in the computer can be divided into two types: static data and Dynamic Data.

1> static data

Concept: Static data refers to some persistent data that is typically stored on a hard disk. Hard disk storage space is generally relatively large, now ordinary computer hard disk has about 500G, so the hard disk can be stored in some relatively large files.

Storage Duration: After the computer shuts down, the data is still in, as long as you do not actively delete or the hard drive is not bad, the data will always be.

What is static data: Static data is usually stored on the hard disk in the form of files, such as documents, photos, videos, etc.

2> Dynamic Data (temporary data)

Concept: Dynamic Data refers to temporary data that is generated dynamically during the course of a program's operation, typically stored in memory. Memory storage space is generally relatively small, now the average computer memory only about 4 G, so be careful to use memory, do not occupy too much memory space.

Storage Duration: After the computer shuts down, the temporary data is erased.

What is Dynamic Data: When you run a program (software), the entire program is loaded into memory, and as the program runs, it produces a variety of temporary data that is stored in memory. When the program stops running or the computer is forced to shut down, all temporary data generated by the program will be erased.

You might ask, why not load all the applications into the hard drive, since the storage space is so large? One of the main reasons is that the memory accesses faster than the hard disk n times.

What data does the programmer care about the most?

3> conversion of static and dynamic Data

Static--Dynamic

dynamic-Static

3. Size of the data

1) both static and dynamic data are composed of 0 and 1. How do 0 and 1 make so much data?

2) data are size, static data will occupy the space of the hard disk, dynamic Data occupies memory space

3) The larger the data, the more the 0 and 1 are included, bits and bytes

4) 1 KB = b,1 MB = 1024x768 kb,1 GB = 1024x768 mb,1 TB = 1024x768 GB

4. Data types in the C language

Because of the wide variety of data in the app, C-language data is classified to facilitate the operation of data.

"Learning Notes", "C language" data

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.