Constants in C Language with examples explain
Constant is a any value that cannot be changed during program execution. In any Language Constants are very important, so to know Constants in C Language with examples read complete article. 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. C constants can be divided into two major categories: Primary constants − Integer, float, and character are called as Primary constants. Secondary constants − Array, structures, pointers, Enum, etc., called as secondary constants. List of Constants in C Language There are different types of constants in C programming. Decimal Constant 10, 20, 450 etc. Real or Floating-point Constant 10.3, 20.2, 450.6 etc. Octal Constant 021, 033, 046 e...
Comments
Post a Comment