What is the use of having the const qualifier?

The const qualifier identifies a specific parameter or variable as read-only attribute to the function or to the entire program. This can come in handy when we are dealing with static data inside function and in a program.

Category: Embedded Systems Interview Questions.