A program must have a certain structure, a beginning, a middle, and an end. In the beginning the computer and its memory are initialised to run the program and in the end the computer and its memory are made ready to leave it. The middle part is what it is all about. Some statements put text on the screen, some make a certain part of the program be repeated a set number of times or until a certain condition is met, some decide if a certain part of the program is at all to be executed or not, and there are many others for many other tasks. This is done by the use of variables .
Pointers Depending on the type of the data, the variables can be number, text or other.
Some variables are called pointers . In short, if b would be a pointer to a , b would represent the actual number of the memory address that is labeled a . Variables can be used to assign values to other variables. This is not a very smart way of working as one can imagine. There is another way for dealing with this, by using arrays .