A components of computer that stores data and programs is called its memory. digital computer has two types of memories: internal/ primary memory and secondary memory.
internal memory is a temporary memory or primary memory. RAM is an example of internal memory. in this type of memory, following items are stored when computer working:-
1- Operating system and other system software that control or maintain the computer and its devices. for example, Windows and device drivers.
2- Application programs that are used to perform specific tasks.For example, word processing program, spreadsheet program etc.
3- Data that is to be processed by application programs and results of the programs.
the role memory to store both data and programs is known as the stored program concepts.
the secondary memory or storage of computer is used to stored larged amount of data and programs permanently. it is also known as mass storage. Hard disk, CD-ROM's, and USB flash drive are examples of secondary storage's.
the read are write operation on memory is performed as follows:
1- A particular address of memory is selected to perform read or write operation.
2- Read or write operation is selected.
3- In write operation, input data is supplied to be stored in memory. Similarly, in read operation, output data coming from memory is received.
4- Enable (or disable) the memory so that it will (or will not) respond to the address inputs and read/write command.