A literal is any notation for representing a value within the source code. They just exist in your source code and do not have any reference a value in memory. Contrast this with identifiers, which refer to a value in memory.
There are several types of literals in C++. Some of the examples of literals are −
Things that are not literals −