Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 13:02, 9 August 2025 by Dylan (talk | contribs) (new)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Pointers are not used too frequently in most high-level programming languages, but they are everywhere in lower-level programming.

The fundamental concept of both a pointer and a reference is to store a memory address to a variable or value.

Why are they needed?

edit edit source

The alternative to passing around pointers (known as pass by reference) is to pass the actual value to functions, known as pass by value. There are some issues with this:

The idea behind both pointers and references are very similar, but please see References for some subtle differences.

Pointers in common programming languages

edit edit source