字符長度



以下是在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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章