Definition: The part of the computer that permanently or temporarily stores data or information is called storage unit or memory.
Example: RAM, hard disk, CD DVD etc.
Every computer has memory or memory current. When a program is executed, the program needs to be in memory. If any input data is needed to run the program it also needs to be brought into memory. After execution of the program the result or output is stored in memory after completion of all operations or during execution.
Classification of Memory:
Primary Memory or Main Memory:
All memory which is directly connected to CPU and stores data or information temporarily or temporarily is called main memory or primary memory. This memory is also known as semiconductor memory. Because this memory uses semiconductor devices to match the speed of the CPU. A memory is an aggregate of several nits. Storage capacity of memory is usually Byte, Megabyte, Gigabyte etc. The relationship between them is given below-
Types of Primary Memory:
According to the type of primary memory data storage, it is again divided into two parts, such as - (i) RAM - Random Access Memory, (ii) ROM - Read Only Memory.