- In programming, a constant is a value that never changes. It is a location in computer memory that gets the value before execution of the program and that can be used in the program.
- A constant may be a character, text or number which can hold any data and which has value assigned before the execution of program.
- Constant is of two types: