The word "Literal" we can heard frequently, specially when you are working with programming language or using a DBMS database or working with some scripting language and so on.
In essence it is programming term and it is used very frequently when code is documented. the "Literal" denotes a value written exactly as it's meant to be interpreted.
Like In programming terms a variable is a name that can holds different values during the execution of the program. And a constant is a name that represents the same value throughout a program. But a literal is not a name -- it is the value itself.
A literal can be a number, a character, or a string.
For example, in the expression,
x = 5
x is a variable, and 5 is a literal.
No comments:
Post a Comment