Difference between revisions of "Label (computer science)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "A '''label''' in a programming language is a sequence of characters that identifies a location within source code. == Description == In most languages...")
 
 
Line 23: Line 23:
 
== External links ==
 
== External links ==
  
* [ Label (computer science)] @ Wikipedia.com
+
* [https://en.wikipedia.org/wiki/Label_(computer_science) Label (computer science)] @ Wikipedia.com
  
 
[[Category:Computer programming]]
 
[[Category:Computer programming]]
 
[[Category:Computer science]]
 
[[Category:Computer science]]
 
[[Category:Computing]]
 
[[Category:Computing]]

Latest revision as of 11:01, 28 April 2016

A label in a programming language is a sequence of characters that identifies a location within source code.

Description

In most languages labels take the form of an identifier, often followed by a punctuation character (e.g., a colon).

In many high level programming languages the purpose of a label is to act as the destination of a GOTO statement.

In assembly language, labels can be used anywhere an address can (for example, as the operand of a JMP or MOV instruction).

Also in Pascal and its derived variations.

Some languages, such as Fortran and BASIC, support numeric labels.

Labels are also used to identify an entry point into a compiled sequence of statements (e.g., during debugging).

See also

External links