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?
2 odpowiedzi
+ 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
+ 1
Thank you very much. Huge respect and gratitude!!😊