类型 | 32位 | 64位 |
---|---|---|
int | 4 bytes | 4 bytes |
short int | 2 bytes | 2 bytes |
long int | 4 bytes | 4 bytes |
long long int | 8 bytes | 8 bytes |
char | 1 byte | 1 byte |
double | 8 bytes | 8 bytes |
float | 4 bytes | 4 bytes |
char* | 4 bytes | 8 bytes |
int* | 4 bytes | 8 bytes |
类型 | 32位 | 64位 |
---|---|---|
int | 4 bytes | 4 bytes |
short int | 2 bytes | 2 bytes |
long int | 4 bytes | 4 bytes |
long long int | 8 bytes | 8 bytes |
char | 1 byte | 1 byte |
double | 8 bytes | 8 bytes |
float | 4 bytes | 4 bytes |
char* | 4 bytes | 8 bytes |
int* | 4 bytes | 8 bytes |
本文标题:C++中基本数据类型大小
本文链接:https://www.haomeiwen.com/subject/usqnqqtx.html
网友评论