Constants
Constants in C are fixed value that does not change during the execution of a program. Constants can be of any of the basic data types. C supports several types of constants in C language as
C constants
a. Numeric Constants
i. Integer Constant
1. Decimal Integer constant
2. Octal integer constant
3. Hexadecimal Integer constant
ii. Real Constant
b. Character Constants
i. Single Character Constant
ii. String Constant
c. Backslash Character constants
d. Symbolic constants
Questions
Part-A
Constants in C are fixed value that does not change during the execution of a program. Constants can be of any of the basic data types. C supports several types of constants in C language as
C constants
a. Numeric Constants
i. Integer Constant
1. Decimal Integer constant
2. Octal integer constant
3. Hexadecimal Integer constant
ii. Real Constant
b. Character Constants
i. Single Character Constant
ii. String Constant
c. Backslash Character constants
d. Symbolic constants
Questions
Part-A
- Define constants? (Or) What are constants?
- State the difference types of constants in C? (Or) Name the various types of constants in C?
- Mention different constant types?