Difference between revisions of "Literal (computer programming)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(See also)
 
(One intermediate revision by the same user not shown)
Line 17: Line 17:
 
== See also ==
 
== See also ==
  
* [[Computer program]]
+
* [[Character literal]]
* [[Computer programming]]
+
 
* [[Computer science]]
 
* [[Computer science]]
 
* [[Constant (computer programming)]]
 
* [[Constant (computer programming)]]
* [[Programming language]]
+
* [[Function literal]]
 +
* [[Here document]] – a file literal or stream literal
 +
* [[Integer literal]]
 
* [[Source code]]
 
* [[Source code]]
 +
* [[String literal]]
 
* [[Variable (computer science)]]
 
* [[Variable (computer science)]]
  
Line 28: Line 30:
  
 
* [https://en.wikipedia.org/wiki/Literal_(computer_programming) Literal (computer programming)] @ Wikipedia
 
* [https://en.wikipedia.org/wiki/Literal_(computer_programming) Literal (computer programming)] @ Wikipedia
 +
 +
[[Category:Computer science]]
 +
[[Category:Computer programming]]
 +
[[Category:Computing]]

Latest revision as of 11:41, 21 September 2016

In computer science, a literal is a notation for representing a fixed value in source code.

Description

Almost all programming languages have notations for atomic values such as integers, floating-point numbers, and strings, and usually for booleans and characters.

Some programming languages also have notations for elements of enumerated types and compound values such as arrays, records, and objects.

Anonymous function

An anonymous function is a literal for the function type.

Variables and constants

In contrast to literals, variables or constants are symbols that can take on one of a class of fixed values, the constant being constrained not to change.

See also

External Links