首页 > 代码库 > C++ notes for beginners(2)
C++ notes for beginners(2)
Primitive Built-in Types
Type | Implication | Minimum storage space |
bool | boolean | NA |
char | character | 8 bits |
wchar_t | wide character | 16 bits |
short | short integer | 16 bits |
int | integer | 16 bits |
long | long integer | 32 bits |
float | single-precision floating-point | 6 significant digits |
double | double-precision floating-point | 10 significant digits |
long double | extended-precision floating-point | 10 significant digits |
Integral types (except the boolean type) may be either signed or unsigned
Unlike other integral types, there are three distict types for char:
plain char equals to char
signed char
unsigned char
C++ notes for beginners(2)
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。