Nepedia
Back to Discover
Independent Reader
💻

Pointer (computer programming)

technology Maturity 7-9 Next article →

A pointer is a special tool in computer programming.

Pointers
Pointers

It does not hold data like a number or a word. Instead, it stores a memory address. A memory address is a location where data lives. You can think of a pointer like a page number in a book index. The index tells you where to go. To find the info, you must flip to that page. This step is called dereferencing. When you dereference a pointer, you go to its address to find the value stored there.

Using pointers helps computers work much faster. It is often quicker to move a pointer than to copy big pieces of data. Pointers help build complex parts like linked lists or trees. These are ways to organize data in a chain or a web.

However, pointers can be tricky. If a pointer points to a wrong or empty spot, the program might crash. This is why programmers must be careful. In 1964, Harold Lawson is credited with inventing the pointer. He helped bring this idea to the PL/I language. This made it easier to handle data in many ways.

187 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (1)
File:Pointers.svg
Pointers.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.