WHAT are CONSTANTS?
Tips for Constant variable
- Constants are also called literals.
- Constants can be any of the data types.
- It is considered the best practice to define constants using only upper-case names.
There are two methods for a constant variable in C++
1. By using the const keyword
const type constant_name;
Example with the const keyword