Importance of Memory
One of the things essential for programming to work is the ability of the computer to store data. Now you may ask: where is the data stored? How is it stored? Well, a basic explanation is that a PC has two types of computer memory. RAM, which is temporary for when your computer is doing work at a given instant. Additionally, computers have hard drives that enable you to store data relatively permanently (that is until your hard drive breaks down). For programmers, we use memory every time we work on code.
For example, if we store variables inside the computer, that is when we use memory.
int a = 1;
int b = 2;
int c = 3;
data = [a b c];
From the above scenario, we assigned values 1,2 and 3 to variables: a, b and c respectively. Further we have initialized a vector/array that stores the value 1,2 and 3.
In general, the larger the memory (measured in bytes) the better your computer will perform. However, please also keep in mind that most systems have upper limits, where if you infinitely add memory, it will not improve performance.
To learn more about computer memory, please continue to check out myprogrammingtips.com. Thanks and have a great day!