What is "memory"
In computing, memory refers to physical devices used to store programs (sequence of instructions) or data (state information, for example) in a temporary or permanent program for use on a computer or other digital electronic device.
Primary memory is the term used for physical systems, which run at high speed (RAM), as a secondary memory distinction, which are physical devices for the program and data storage that are slow to access but offer greater memory capacity. Check the tag ram for more details.
Main memory stored in secondary memory is called "virtual memory", which can be seen under the tag virtual memory.
An important facet of programming is the interaction with a computer’s memory. For specific issues with memory management, check the memory management.
More information: What every programmer should know about memory