Constants
Constants in C++ refer to fixed values which do not modify during the execution of a program. C++ supports various types of constants as displays below: -
Numeric Constants
1. Integer Constants
2. Floating point (real) Constants
Character Constants
1. Single Character Constants
2. String Constants
The given rules apply to all numeric constants: -, non-digit characters and blanks cannot be involved inside a constant. A constant can be preceded through a minus sign.