What is a pointer

A pointer is just an integer, which is a memory address pointing to a specific cell in the memory.

In addition, the concept of pointers and that of arrays are quite similar. An array variable can be seen as a pointer pointing to its first element. The main difference between pointers and arrays is that, a pointer can be re-assigned to a different memory address, while an array cannot.

Privacy & Terms