0

Why is memory necessary for storing values?

It was being taught that creating the variable is necessary for a space in memory for storing values. What is the necessary needed for?

6th May 2018, 3:08 PM
Shaggy Singh Rawat
2 Respostas
+ 5
If you are writing a book you will need paper. The paper in that case is your "word storage". On the computer it's the same thing. I mean you need to put the numbers somewhere if you want to work with them. And that somewhere is memory! To add two numbers a and b: Copy a from memory to a CPU register Copy b from memory to a CPU register Calculate a+b, store it in a CPU register c Copy register c back to memory
6th May 2018, 3:22 PM
Schindlabua
Schindlabua - avatar
+ 1
Thank you very much. Huge respect and gratitude!!😊
6th May 2018, 3:36 PM
Shaggy Singh Rawat