To do this, a function can be passed pointer variable instead of a regular variable. When the control passes from the function back to where it came from, the value to which the pointer points to changed as well. The above uses are just a few of the common uses for pointers. The following sites were very useful to me in finding out about pointers. With pointers, many actions can be programmed but, at the same time, a lot of things can go wrong.
Programmers use pointers because they make the code slightly more efficient.
They do, however, make the code harder to understand. This sounds simple but it is not, especially when there is a heavy use of them. All the little mistakes can lead to a big crash. When we refer to the pointer, we can use another asterix to indicate we are dealing with the data referenced by the pointer, rather than the pointer itself. It can be referred to that location in memory by the name, anInt.