size_t , int,float,long,double,short int

size_t:在32位系统中,size_t是4字节的,而在64位系统中,size_t是8字节的,无符号整数,长度与平台无关。

int:在32位系统,c/c++中是4个字节,有符号整数,字节长度与使用平台有关。

short int:在32位系统,c/c++中是2个字节。

long:在32位系统,c/c++中是4个字节。

float:在32位系统,c/c++中是4个字节。

double:在32位系统,c/c++中是8个字节。

原文地址:https://www.cnblogs.com/luow/p/2200641.html