Literals
Now, we'll learn about literals.
We'll cover the following
Literals are explicit values in the program.
A literal can be a value of any basic data type such as int
, bool
, etc. The value of a literal is fixed. Hence, literals are referred to as constants.
C++ has several built-in literals:
Get hands-on with 1400+ tech skills courses.