Literal.

Q13. What is a literal?

Ans. A literal is a sequence of characters used in program to represent a constant value. For example, ‘A’ is a literal that represents the value A, of type char, and 17L is a literal that represents the number 17 as a value of type long. A literal is a way of writing a value, and should not be confused with the value itself.

Leave a Reply

Your email address will not be published. Required fields are marked *