c# - What does the word "literal" mean? -


The word "literal" means the word, when used in context such as literal string and literal value?

What is the difference between a literal value and a value?

a literal "( identifier , which referenced with value in memory)

)

Example:

  • "hey" (a string)

    / Li>
  • incorrect (a bullion)
  • 3.14 (a real number)
  • [1
  • (x) => X * x (a function)
  • / ^ 1? $ | ^ (11 +?) \ 1 + $ / (a regexp)

Some things that are not literal:

  • std :: cout (an identifier) ​​
  • foo = 0; (one sent N)
  • 1 + 2 (one expression)

Comments