Computer Science, asked by lopa6, 1 year ago

what is literals? describe it

Answers

Answered by binnie3105
1
An anonymous function is a literal for the function type. In contrast to literals, variables or constants are symbols that can take on one of a class of fixed values, the constant being constrained not to change.
Answered by cyrusbishop
0

Answer:

Literals which is often referred to as constants are data items that are fixed data values.

Explanation:

There are six types of literals which are as follows:

  • Integer literals: The numbers which are represented without a  decimal point.
  • Real literals: These are also called floating-point constants.
  • Character literals: The constants, which are alphanumeric in nature.
  • String literals: They are a set of alphanumeric characters.
  • Boolean literals: They are special literals.
  • Null literals: They are used as a String terminator to mark the end of a string.
Similar questions