Constants in C Programming Language: Primary & Secondary
January 25, 2010
Constants in C Programming Language
The keyword const can be added to the declaration of an object to make that object a constant rather than a variable.
The general syntax of constant declaration is :
Const data-type name = value;
Here const is known as a keyword that must be used to declare a constant. Name is the name of the constant, data-type is the type of the data which we are declaring and value is the constant value of the data-type. WAIT! There is more to read… read on »