pointer
Quick Summary
A pointer, in computing, is a variable that stores the memory address of another variable. This allows programs to indirectly access and manipulate data. Think of it like a street address written on a piece of paper; the paper itself isn't the house, but it tells you where to find it.
Pointers are fundamental in many programming languages, enabling efficient memory management and dynamic data structures like linked lists and trees. They can also be used to pass large amounts of data to functions without copying the entire dataset, improving performance. However, incorrect use of pointers can lead to errors such as segmentation faults or memory leaks, making them a powerful but potentially dangerous tool.1
Ask Britannica AI about this topic
Britannica doesn't have a full article on this topic, so we've curated a list of our relevant coverage.
computer scienceAlgorithms and complexity…may be linked together by pointers (essentially, memory addresses stored with an item to indicate where the next item or items in the structure are found) so that the data can be organized in ways similar to those in which they will be accessed. The simplest such structure is called…
Read More…may be linked together by pointers (essentially, memory addresses stored with an item to indicate where the next item or items in the structure are found) so that the data can be organized in ways similar to those in which they will be accessed. The simplest such structure is called…
Read More
information processingStorage structures for digital-form information…are shown by means of “pointers” (i.e., identifiers such as addresses or keys) that become part of the records.
Read More…are shown by means of “pointers” (i.e., identifiers such as addresses or keys) that become part of the records.
Read More