Which Is the Right Way To Declare Constant in C?
Answer:
Variables can be declared as constants by using the “const” keyword before the data type of the variable. The constant variables can be initialized once only. The default value of constant variables are zero.
The correct way to declare a constant in C programming is:
const datatype variable = value.
For example: const int var = 5.