字符长度

来源:互联网 发布:怎么查询淘宝卖家电话 编辑:程序博客网 时间:2024/05/01 16:45



以下是在centos_x32和centos_x64下对应的类型长度:
/*******size of types on centos_x32*****************/
size of char:1
size of int:4  [-2^32/2---2^32/2]

size of unsigned int:4  [0---2^32]
size of long :4
size of float :4
size of long long:8
size of double:8
size of long double:12
size of char * :4
/*******size of types on centos_x64*****************/
size of char:1
size of int:4
size of long :8
size of float :4
size of long long:8
size of double:8
size of long double:16
size of char * :8

原创粉丝点击