17. Constants/Literals in C programming
Constants/Literals in C : During the program execution, any unchanged value in a program is known as constant. A constant in C language refers to a fixed value that does not change during execution of a program. C supports following types of constants: (1) Numeric Constants : C language supports two types of numeric constants. They are Integer Constants and Floating point or Real Constants. An integer constant is a signed or unsigned whole number, such that + 25, - 10, 33 etc. where as any signed or unsigned number with fractional part is known as floating point or real constants, such that 0.23, +0.23, - 0.23, 0.23 ÷ 5 (0.23 x 10 to the power 5). (2) Character constant : C language supports two types of character constants. They are Single character constants and String constants. Any letter enclosed in single apostrophe is called single character constant. For example ‛s’ , ‛+’ , ‛$’ etc. where as any string of characters consisting of letters, digits, and symbols enclosed in do...