C++中基本数据类型大小

类型 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++中基本数据类型大小)