Literals/Constants are those whose value can not be changed during the execution of the program. In other words we can say that these are fixed values. It is used where we want a fix value that can’t be changed. When we try to change its value it gives an error stating constant value can’t be changed.
Type of constants
- Numeric Constant.
- Character Constant.
- String Constant.
- Punctuators/Separators/Delimiters