Data Type | Size (in bytes) | Range |
---|---|---|
short int | 2 | -32,768 to 32,767 |
unsigned short int | 2 | 0 to 65,535 |
unsigned int | 4 | 0 to 4,294,967,295 |
int | 4 | -2,147,483,648 to 2,147,483,647 |
long int | 4 | -2,147,483,648 to 2,147,483,647 |
unsigned long int | 8 | 0 to 4,294,967,295 |
long long int | 8 | -(2^63) to (2^63)-1 |
unsigned long long int | 8 | 0 to 18,446,744,073,709,551,615 |
signed char | 1 | -128 to 127 |
unsigned char | 1 | 0 to 255 |
float | 4 | |
double | 8 | |
long double | 12 | |
wchar_t | 2 or 4 | 1 wide character |
C++ Data Types
转载
Summarizes the modified size and range of built-in datatypes when combined with the type modifiers:
本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
上一篇:无向图转边双连通分量最少加边数
下一篇:Python
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Hive data types
Primitive TypesNumeric Types typelengthpostfixexampleT
hive 数据库 类型转换 string类 复杂数据类型 -
PostgreSQL类型系统——Data Types
PostgreSQL has a rich set of native data types available to users. Users can add new types to
postgresql 数据库 #define SQL PostgreSQL