Content deleted Content added
Line 1:
{{Unreferenced|date=February 2007}}
An '''unreferenced variable''' 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 (unless the [[compiler]] used detects the situation and does not allocate storage for the variable, perhaps also issuing a warning). Some [[coding style|coding guideline]] documents consider an unreferenced variable to be a symptom of a potential coding fault.▼
{{orphan|date=November 2009}}
▲An '''unreferenced variable''' 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 (unless the [[compiler]] used detects the situation and does not allocate storage for the variable, perhaps also issuing a warning). Some [[coding style|coding guideline]] documents consider an unreferenced variable to be a symptom of a potential coding fault.
== Examples ==▼
[[C (programming language)|C]]:
<source lang="c">
Line 15 ⟶ 17:
In this example, '''j''' is an unreferenced variable.
{{DEFAULTSORT:Unreferenced Variable}}
[[Category:Variable (computer programming)]]
{{
|