what is literal in c#
Literals and Constants in C#. Literal is a source code representation of a value, i.e. it is a value that has been hard-coded directly into your source. x is a variable, and 100 is a literal.