名称 | 占的字节数 |
---|---|
bool | 1 |
char | 1 |
wchar_t | 4 |
char16_t | 2 |
char32_t | 4 |
signed char | 1 |
short | 2 |
int | 4 |
long | 4 |
long long | 8 |
unsigned char | 1 |
unsigned short | 2 |
unsigned | 4 |
unsigned long | 4 |
unsigned long long | 8 |
float | 4 |
double | 8 |
long double | 16 |
void | 1 |
nullptr_t | 8 |
size_t | 8 |