Conceptual
Login

Pointer

A variable whose value is a memory address; dereferencing follows the address to the data it designates. Pointers enable indirection and shared access to one allocation, and misusing them (invalid, freed, or out-of-bounds addresses) is the root of most memory bugs.

Questions this Concept answers

  • Explain, in your own words, why passing a pointer to a function lets that function modify the caller's original data, while passing a value does not.