C-Type-Value-Range-List
Type |
Storage size (64 bit) |
Range (64 bit) |
Format specifiers |
---|---|---|---|
void |
None |
None |
None |
_bool |
1 Byte |
0 to 1 |
%d |
char |
1 Byte |
-128 to 127 |
%c |
unsigned char |
1 Byte |
0 to 255 |
%u |
short int |
2 Bytes |
-32,768 to 32,767 |
%d |
unsigned short int |
2 Bytes |
0 to 65,535 |
%u |
int |
4 Bytes |
-2,147,483,648 to 2,147,483,647 |
%d |
unsigned int |
4 Bytes |
0 to 4,294,967,295 |
%u |
long int |
8 Bytes |
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
%ld |
unsigned long int |
8 Bytes |
0 to 18,446,744,073,709,551,615 |
%lu |
long long |
8 Bytes |
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
%lld |
unsigned long long |
8 Bytes |
0 to 18,446,744,073,709,551,615 |
%llu |
float |
4 Bytes |
1.2×10^-38 to 3.4×10^38 |
%e, %f, %g |
double |
8 Bytes |
2.3×10^-308 to 1.7×10^308 |
%e, %f, %g |
long double |
16 Bytes |
3.4×10^-4932 to 1.1×10^4932 |
%e, %f, %g |
Type |
Storage size (32 bit) |
Range (32 bit) |
Format specifiers |
---|---|---|---|
void |
None |
None |
None |
_bool |
1 Byte |
0 to 1 |
%d |
char |
1 Byte |
-128 to 127 |
%c |
unsigned char |
1 Byte |
0 to 255 |
%u |
short int |
2 Bytes |
-32,768 to 32,767 |
%d |
unsigned short int |
2 Bytes |
0 to 65,535 |
%u |
int |
4 Bytes |
-2,147,483,648 to 2,147,483,647 |
%d |
unsigned int |
4 Bytes |
0 to 4,294,967,295 |
%u |
long int |
4 Bytes |
-2,147,483,648 to 2,147,483,647 |
%ld |
unsigned long int |
4 Bytes |
0 to 4,294,967,295 |
%lu |
long long |
8 Bytes |
-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
%lld |
unsigned long long |
8 Bytes |
0 to 18,446,744,073,709,551,615 |
%llu |
float |
4 Bytes |
1.2×10^-38 to 3.4×10^38 |
%e, %f, %g |
double |
8 Bytes |
2.3×10^-308 to 1.7×10^308 |
%e, %f, %g |
long double |
16 Bytes |
3.4×10^-4932 to 1.1×10^4932 |
%e, %f, %g |