Computer memory is the storage space in the computer, where data is processed and instructions required for processing are stored.CPU is the brain of the computer. CPU needs to have some palce where it can hold instructions and data during processing.