C Language-----constants, variables

Source: Internet
Author: User

Types of data stored:

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

1. Static data: Static data is generally permanent data, generally stored in the hard disk, the file is relatively large.

Storage time: The computer is not lost after the restart, as long as you do not delete, the hard disk is not damaged, the data has been there will not be lost.

What is static data: For example: static data is generally stored in the form of files on the hard disk, such as: Documents, videos, music, pictures and so on.

2. Dynamic Data: Dynamic Data refers to the program in the process of running, the dynamic production of temporary data, generally stored in memory, memory storage space is generally relatively small. So use memory sparingly and efficiently.

Storage Time: when the computer shuts down, the temporary data stored in the memory will be automatically cleared to free up space.

What is dynamic memory : 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.

C Language-----constants, variables

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.