DATA TYPES IN C

C language is rich in data types. The fundamental data types which can be used in C are integer data types, character data types and floating point data types. Integer data type is used to represent an integer-valued number. Character data type represents one single alphabet or a single-digit integer. Each character type has an equivalent integer representation. Integer and character data types can be augmented by the use of the data type qualifiers, short, long, signed and unsigned. The range of values which belong to each category varies with respect to the qualifiers and so, the memory requirement.
Floating point data types are used to represent real numbers. Basic floating point data type offers six digits of precision. Double precision data type can be used to achieve a precision of 14 digits. To extend the precision further more, we may use the extended double precision floating point data type. Each of the above discussed data types and their corresponding keywords are given in the table below.


0 comments:

Newer Post Older Post Home