Each variable in C has an related data type. Each data type requires diverse sums of memory and has a few particular operations which can be performed over it. Let us briefly portray them one by one:
Following are the examples of some very common data types used in C:
1.char: This is the most basic data type in C because it stores a single character and requires a single byte of memory in almost all compilers.
2.int: An int variable is used to store an integer.
3.float: It is used to store decimal numbers with single precision.
4.double: It is used to store decimal numbers (numbers with floating point value) with double precision.
Diverse data type too have diverse ranges up to which they can store numbers. These ranges may change from compiler to compiler.