What are literals ?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting What are literals ?
# 1  
Old 02-02-2010
What are literals ?

Can someone explain what are literals , googled it got totally confused are these strings , numbers , boolean or a set of them
# 2  
Old 02-02-2010
Strange, when I search for literals on Google, among the first results is the (ambigous) Wikipedia page.

Summarizing:
  • In programming languages, a "literal" is the representation of a fixed value, eg. the string holding the text shown when requesting the usage information of a program. Another example would be using Pi as a rounded value if you don't need quite that much accuracy.
  • In a regex / general grammar, a literal is any terminal symbol, eg a symbol that can't be broken down to other symbols.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question