Types Of Constant In C Programming Explain
What are the types of constant: 5 types of constant are in c language.
1. Integer Constant.
2. Floating Point Constant.
3. Character Constant.
4. String Constant.
5. Enumeration Constant.
Integer Constant:
Integer constants are the numeric constants or constant associated with numbers without any fractional part or exponential part.
There are three types of integer constants in C language:
1. decimal constant(base 10).
2. octal constant(base 8).
3. hexadecimal constant(base 16).
Floating Point Constant:
Floating point constants are the numeric constants that has either fractional form or exponent form.
Character Constant:
Character constants are the constant which use single quotation around characters.
String Constant:
String constants are the constants which are enclosed in a pair of double-quote marks.
Enumeration Constant:
Keyword enum is used to declare enumeration types.
Search Keyword: Integer Constant In C Programming, Types Of Constant, How to declare constant.
Keyword enum is used to declare enumeration types.
Search Keyword: Integer Constant In C Programming, Types Of Constant, How to declare constant.



0 comments:
Post a Comment
Thanks For Your Comment. We Get Back To You As Soon As Possible.