C++11之array数组基础学习
[TOC]
文章参考:http://c.biancheng.net/view/7809.html
概述
C++ 11 标准中,基于整数大小的考虑,共提供了如表 1 所示的这些数据类型。与此同时,标准中还明确限定了各个数据类型最少占用的位数。
整数类型 | 等价类型 | C++11标准规定占用最少位数 |
---|---|---|
short | short int(有符号短整型) | 至少 16 位(2 个字节) |
signed short | ||
signed short int | ||
unsigned short | unsigned short int(无符号短整型) | |
unsigned short int | ||
int | int(有符号整形) | 至少 16 位(2 个字节) |
signed | ||
signed int | ||
unsigned | unsigned int(无符号整形) | |
unsigned int | ||
long | long int(有符号长整形) | 至少 32 位(4 个字节) |
long int | ||
signed long | ||
signed long int | ||
unsigned long | unsigned long int(无符号长整形) | |
unsigned long int | ||
long long(C++11) | long long int(有符号超长整形) | 至少 64 位(8 个字节) |
long long int(C++11) | ||
signed long long(C++11) | ||
signed long long int(C++11) | ||
unsigned long long(C++11) | unsigned long long int(无符号超长整型) | |
unsigned long long int(C++11) |
‘’
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 麦溪·在路上!
评论
ValineDisqus