Computer memory is used to store information (sometimes also called data and instructions) in a digital computer. A Memory is divided into large number of small parts called memory cells. Each memory cells or location has a unique address in the form of machine language (0/1). The computer memory is divided into- main memory and auxiliary memory.
Main memory also called primary memory and secondary memory also called storage memory. Main memory holds instructions and data when a program is in execution, while auxiliary or secondary memory holds data and programs not currently in execution and acts as a storage medium.