In C we have many data types and each data type has its own range and its own specialization. Here is the table which gives you details about the data types and the range of each data type we are providing.
Variable Type
|
Keyword
|
Bytes Required
|
Range
|
Character
|
char
|
1
|
-128 to 127
|
Integer
|
int
|
2
|
-32768 to 32767
|
Short Integer
|
short
|
2
|
-32768 to 32767
|
Long Integer
|
long
|
4
|
-2,147,483,648 to 2,147,483,647
|
Unsigned character
|
unsigned char
|
1
|
0 to 255
|
Unsigned integer
|
unsigned int
|
2
|
0 to 65535
|
Unsigned short integer
|
unsigned short
|
2
|
0 to 65535
|
Unsigned long integer
|
unsigned long
|
4
|
0 to 4,294,967,295
|
Single Precision floating-point Number
|
float
|
4
|
1.2E-38 to 3.4E38
(Approx 7 digits precision)
|
Double precision floating-point number
|
double
|
8
|
2.2E-308 to 1.8E308
(Approx 19 digits precision)
|