Memory is used for the purpose of running programs, for example, your text editor. The text editor stores the file you are editing as what is known as a 'buffer' in your memory instead of modifying the file in-place. This is what makes undo/redo possible.
Computer memory
Main memory (RAM).
Answer:- The Cache memory is placed between the CPU and the main memory. It is a fast speed memory and is expensive and faster than the main memory. Cache memory is used to store the frequently accessed data of main memory. The instructions that are frequently used by the CPU are stored in the cache memory. It is used to reduce the average access time for address, instructions or data, which are normally stored in the main memory. Cache memory increases the operating speed of the system. But is much costlier than main memory. From economic considerations, the capacity of the cache memory is much less as compared to main memory..
in main memory
on the hard drive
Variable stored in the memory block inside the RAM. whenever we declare a variable it would take space in main memory and consume it's size from RAM.
I think you maybe thinking about the RAM ( random access memory).
Both. The software resides in the nonvolatile memory when it is not being run, and a copy is loaded into main memory when it is being run. Programs have to reside in RAM in order for the CPU to process their instructions.
Memory is stored in the brain's grey matter.
It depends entirely on what platform you are using. In an embedded environment, for instance global/static variables go into different RAM memory segments depending on whether or not they are initialised. constants are often left in ROM automatic variables are normally placed of the stack of the currently running task but not always.
The software would tell it where to find the items.
Memory is stored in the brain. Some things like an odd answer to a question in maths are stored in short term memory and others like your birthday are stored in long term memory.