- Constant refers to variables having fixed values that the program can't change during its execution.
- Fixed value assigned to constant are called literals.
Constant definition in C
const keyword is used to define a constant variable.
const int employeeId = 121 ;
const float salary = 20145.50 ;
Types of literals:
10 // number
0x20 // hexadecimal
0123 // octal