Unreferenced variable

Unreferenced variable

An unreferenced variable in the source code of a computer program is a 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 guideline documents consider an unreferenced variable to be a symptom of a potential coding fault.

Examples

C: int main(void) { int i, j; for (i=0; i<10; i++) printf("%d", i); return 0; }In this example, j is an unreferenced variable.


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Look at other dictionaries:

  • Variable — A variable (pronEng|ˈvɛərɪəbl) is an attribute of a physical or an abstract system which may change its value while it is under observation. Examples include the height of a child, the temperature across a state, or the input to a function. This… …   Wikipedia

  • NTFS — Developer Microsoft Full name New Technology File System[1] Introduced July 1993 (Windows NT 3.1) Partition identifier 0x07 (MBR) EBD0A0A2 B9E5 4433 87C0 68B6 …   Wikipedia

  • Object (computer science) — In computer science, an object is any entity that can be manipulated by the commands of a programming language, such as a value, variable, function, or data structure. (With the later introduction of object oriented programming the same word,… …   Wikipedia

  • Dalek variants — …   Wikipedia

  • Lempel-Ziv-Markov chain algorithm — The Lempel Ziv Markov chain Algorithm (LZMA) is an algorithm used to perform data compression. It has been under development since 1998 [The SDK history file states that it was in development from 1996, and first used in 7 zip 2001 08 30. Aside… …   Wikipedia

  • Car body style — articleissues unreferenced = November 2007 original research = November 2007 Cars can come in a large variety of different body styles. Some are still in production, while others are of historical interest only. These styles are largely (though… …   Wikipedia

  • Button mashing — Articleissues POV = July 2007 disputed = July 2007 weasel = July 2007 unreferenced = July 2007 tone = July 2007 rewrite = July 2007Button mashing (a.k.a. button bashing) is a term used in console gaming contexts to refer to quick, repeated, and… …   Wikipedia

  • Yogi Tea — Article issues cleanup=December 2007 unreferenced=March 2007 wikify=December 2007 advert=December 2007Yogi Tea is the name of a range of herbal teas manufactured by the Golden Temple Company in Eugene, Oregon, United States. The recipes use… …   Wikipedia

  • Timothy Herbert — Articleissues expand = September 2007 Notable = September 2007 orphan = September 2007 unreferenced = September 2007Timothy Herbert is an orthopaedic surgeon best known for his work with the scaphoid bone and related invention, the Herbert screw …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”