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