<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Unreferenced_variable</id>
	<title>Unreferenced variable - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=Unreferenced_variable"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Unreferenced_variable&amp;action=history"/>
	<updated>2026-05-12T21:19:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=Unreferenced_variable&amp;diff=4275835&amp;oldid=prev</id>
		<title>imported&gt;Citation bot: Alter: url. URLs might have been anonymized. Add: authors 1-1. Removed parameters. Some additions/deletions were parameter name changes. | Use this bot. Report bugs. | Suggested by AManWithNoPlan | #UCB_CommandLine</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=Unreferenced_variable&amp;diff=4275835&amp;oldid=prev"/>
		<updated>2023-02-22T19:32:27Z</updated>

		<summary type="html">&lt;p&gt;Alter: url. URLs might have been anonymized. Add: authors 1-1. Removed parameters. Some additions/deletions were parameter name changes. | &lt;a href=&quot;/wiki143/index.php?title=WP:UCB&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:UCB (page does not exist)&quot;&gt;Use this bot&lt;/a&gt;. &lt;a href=&quot;/wiki143/index.php?title=WP:DBUG&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:DBUG (page does not exist)&quot;&gt;Report bugs&lt;/a&gt;. | Suggested by AManWithNoPlan | #UCB_CommandLine&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Variable which is defined but never used}}&lt;br /&gt;
An &amp;#039;&amp;#039;&amp;#039;unreferenced variable&amp;#039;&amp;#039;&amp;#039; in the [[source code]] of a [[computer program]] is a [[Variable (programming)|variable]] that is defined but which is never used.  This may result in a harmless waste of memory.  Many [[compiler]]s detect such variables and do not allocate storage for them (i.e., &amp;quot;optimize away&amp;quot; their storage), generally also issuing a warning as they do.&amp;lt;ref&amp;gt;{{Cite book |last1=Blair-Chappell |first1=Stephen |url=https://books.google.com/books?id=n3DtR4mQNmwC |title=Parallel Programming with Intel Parallel Studio XE |last2=Stokes |first2=Andrew |date=2012-04-19 |publisher=John Wiley &amp;amp; Sons |isbn=978-1-118-23488-4 |pages=108 |language=en}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Some [[coding style|coding guideline]] documents consider an unreferenced variable to be a symptom of a potential coding fault. On the other hand, unreferenced variables can be used as temporary placeholders to indicate further expected future developments in the code.&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
[[C (programming language)|C]]:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
 int main(void)&lt;br /&gt;
 {&lt;br /&gt;
   int i, j;&lt;br /&gt;
   for (i=0; i&amp;lt;10; i++)&lt;br /&gt;
      printf(&amp;quot;%d&amp;quot;, i);&lt;br /&gt;
   return 0;&lt;br /&gt;
 }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
In this example, &amp;#039;&amp;#039;&amp;#039;j&amp;#039;&amp;#039;&amp;#039; is an unreferenced variable.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Unreferenced Variable}}&lt;br /&gt;
[[Category:Variable (computer science)]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Compu-prog-stub}}&lt;/div&gt;</summary>
		<author><name>imported&gt;Citation bot</name></author>
	</entry>
</feed>