|
Type name |
Bytes |
Other Name |
Range of values |
|
Int |
4 |
Signed |
–2,147,483,648 to 2,147,483,647 |
|
unsigned int |
4 |
Unsigned |
0 to 4,294,967,295 |
|
_int8 |
1 |
Char |
–128 to 127 |
|
unsigned _int8 |
1 |
unsigned char |
0 to 255 |
|
__int16 |
2 |
short, short int, signed short int |
–32,768 to 32,767 |
|
unsigned __int16 |
2 |
unsigned short, unsigned short int |
0 to 65,535 |
|
__int32 |
4 |
Signed, signed int, int |
–2,147,483,648 to 2,147,483,647 |
|
unsigned __int32 |
4 |
unsigned, unsigned int |
0 to 4,294,967,295 |
|
__int64 |
8 |
Long long, signed long long |
–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
|
unsigned __int64 |
8 |
unsigned long long |
0 to 18,446,744,073,709,551,615 |
|
bool |
1 |
No |
False or True |
|
Char |
1 |
No |
128 to 127 (default)
0 to 255 (when compiling with/j) |
|
Signed Char |
1 |
No |
–128 to 127 |
|
unsigned char |
1 |
No |
0 to 255 |
|
Short |
2 |
short int, signed short int |
–32,768 to 32,767 |
|
unsigned short |
2 |
unsigned short int |
0 to 65,535 |
|
Long |
4 |
Long int, signed long int |
–2,147,483,648 to 2,147,483,647 |
|
unsigned long |
4 |
|
0 to 4,294,967,295 |
|
Long Long |
8 |
None (equivalent to __int64) |
–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 |
|
unsigned long long |
8 |
None (equivalent to unsigned __int64) |
0 to 18,446,744,073,709,551,615 |
|
Enum |
Varies |
No |
A user-defined type that contains a set of named integer constants called enumerators. |
|
Floating |
4 |
No |
3.4E +/-38 (7-digit) |
|
Double |
8 |
No |
1.7E +/-308 (15-digit) |
|
Long double |
Same as Double |
No |
Same as Double |
|
wchar_t |
2 |
__wchar_t |
0 to 65,535 |