Data Type Ranges


Type Name: int
Other Names: signed
Bytes: 4
Range of Values: –2,147,483,648 to 2,147,483,647

Type Name: unsigned int
Other Names: unsigned
Bytes: 4
Range of Values: 0 to 4,294,967,295

Type Name: __int8
Other Names: char
Bytes: 1
Range of Values: –128 to 127

Type Name: unsigned __int8
Other Names: unsigned char
Bytes: 1
Range of Values: 0 to 255

Type Name: __int16
Other Names: short, short int, signed short int
Bytes: 2
Range of Values: –32,768 to 32,767

Type Name: unsigned __int16
Other Names: unsigned short, unsigned short int
Bytes: 2
Range of Values: 0 to 65,535

Type Name: __int32
Other Names: signed, signed int, int
Bytes: 4
Range of Values: –2,147,483,648 to 2,147,483,647

Type Name: unsigned __int32
Other Names: unsigned, unsigned int
Bytes: 4
Range of Values: 0 to 4,294,967,295

Type Name: __int64
Other Names: long long, signed long long
Bytes: 8
Range of Values: –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Type Name: unsigned __int64
Other Names: unsigned long long
Bytes: 8
Range of Values: 0 to 18,446,744,073,709,551,615

Type Name: bool
Other Names: none
Bytes: 1
Range of Values: false or true

Type Name: char
Other Names: none
Bytes: 1
Range of Values: –128 to 127 by default, or 0 to 255 when compiled with /J

Type Name: signed char
Other Names: none
Bytes: 1
Range of Values: –128 to 127

Type Name: unsigned char
Other Names: none
Bytes: 1
Range of Values: 0 to 255

Type Name: short
Other Names: short int, signed short int
Bytes: 2
Range of Values: –32,768 to 32,767

Type Name: unsigned short
Other Names: unsigned short int
Bytes: 2
Range of Values: 0 to 65,535

Type Name: long
Other Names: long int, signed long int
Bytes: 4
Range of Values: –2,147,483,648 to 2,147,483,647

Type Name: unsigned long
Other Names: unsigned long int
Bytes: 4
Range of Values: 0 to 4,294,967,295

Type Name: long long
Other Names: none (but equivalent to __int64)
Bytes: 8
Range of Values: –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

Type Name: unsigned long long
Other Names: none (but equivalent to unsigned __int64)
Bytes: 8
Range of Values: 0 to 18,446,744,073,709,551,615

Type Name: enum
Other Names: none
Bytes: varies
Range of Values: See Remarks

Type Name: float
Other Names: none
Bytes: 4
Range of Values: 3.4E +/- 38 (7 digits)

Type Name: double
Other Names: none
Bytes: 8
Range of Values: 1.7E +/- 308 (15 digits)

Type Name: long double
Other Names: none
Bytes: 8
Range of Values: 1.7E +/- 308 (15 digits)

Type Name: wchar_t
Other Names: __wchar_t
Bytes: 2
Range of Values: 0 to 65,535




Comentários

Copyright © 2018 Anderson Bravo
www.andersonbravo.com.br
anderson@andersonbravo.com.br