Constants

1. What is constant in C programming language? ⇒ Constant is an...

1. What is constant in C programming language?

⇒ Constant is an any value that cannot be changed during program execution. In C, any number, single character, or character string is known as a constant. A constant is an entity that doesn’t change whereas a variable is an entity that may change.

For example, the number 50 represents a constant integer value. The character string “Programming in C is fun.n” is an example of a constant character string.


2. How many types of constants are available in c ?

⇒ C constants can be divided into two major categories: Primary Constants, Secondary Constants.

Constant Types | Zapuza Learning Application