<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=Pointer</id>
	<title>Pointer - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://coderwiki.org/index.php?action=history&amp;feed=atom&amp;title=Pointer"/>
	<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Pointer&amp;action=history"/>
	<updated>2026-05-19T00:47:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://coderwiki.org/index.php?title=Pointer&amp;diff=52&amp;oldid=prev</id>
		<title>Dylan: new</title>
		<link rel="alternate" type="text/html" href="http://coderwiki.org/index.php?title=Pointer&amp;diff=52&amp;oldid=prev"/>
		<updated>2025-08-09T13:02:08Z</updated>

		<summary type="html">&lt;p&gt;new&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Pointers are not used too frequently in most [[High-level programming language|high-level programming languages]], but they are &amp;#039;&amp;#039;&amp;#039;everywhere&amp;#039;&amp;#039;&amp;#039; in [[Low-level programming language|lower-level programming]].&lt;br /&gt;
&lt;br /&gt;
The fundamental concept of both a pointer and a [[reference]] is to store a [[memory address]] to a [[variable]] or [[value]].&lt;br /&gt;
&lt;br /&gt;
== Why are they needed? ==&lt;br /&gt;
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:&lt;br /&gt;
&lt;br /&gt;
* You end up with multiple [[Copying a value|copies]] of the same value, so [[Mutate|mutating]] the original [[value]] is harder&lt;br /&gt;
* If the [[programming language]] needs to make a [[Copying a value|copy]] of the [[value]], that requires [[memory allocation]] and is therefore [[Performance|slow]].&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
The idea behind both &amp;#039;&amp;#039;&amp;#039;pointers&amp;#039;&amp;#039;&amp;#039; and [[Reference|references]] are very similar, but please see [[References]] for some subtle differences.&lt;br /&gt;
&lt;br /&gt;
== Pointers in common programming languages ==&lt;br /&gt;
&lt;br /&gt;
* [[C pointer]]&lt;/div&gt;</summary>
		<author><name>Dylan</name></author>
	</entry>
</feed>