ÕâÀïËù˵µÄ²»Í¬Êý¾ÝÀàÐ͵Ä×Ö½ÚÊýºÍ»úÆ÷×Ö³¤¼°±àÒëÆ÷ÓйØϵ£º
ËùÒÔ£¬int£¬long int£¬short intµÄ¿í¶È¶¼¿ÉÄÜËæ±àÒëÆ÷¶øÒì¡£µ«Óм¸ÌõÌú¶¨µÄÔÔò£¨ANSI/ISOÖƶ©µÄ£©£º
1 sizeof(short int)<=sizeof(int)
2 sizeof(int)<=sizeof(long int)
3 short intÖÁÉÙӦΪ16루2×Ö½Ú£©
4 long intÖÁÉÙӦΪ32λ¡£
unsigned ÊÇÎÞ·ûºÅµÄÒâ˼¡£
ÀýÈ磺
16λ±àÒëÆ÷
char £º1¸ö×Ö½Ú
char*(¼´Ö¸Õë±äÁ¿): 2¸ö×Ö½Ú
short int : 2¸ö×Ö½Ú
int£º 2¸ö×Ö½Ú
unsigned int : 2¸ö×Ö½Ú
float: 4¸ö×Ö½Ú
double: 8¸ö×Ö½Ú
long: 4¸ö×Ö½Ú
long long: 8¸ö×Ö½Ú
unsigned long: 4¸ö×Ö½Ú
32λ±àÒëÆ÷
char £º1¸ö×Ö½Ú
char*£¨¼´Ö¸Õë±äÁ¿£©: 4¸ö×Ö½Ú£¨32λµÄÑ°Ö·¿Õ¼äÊÇ2^32, ¼´32¸öbit£¬Ò²¾ÍÊÇ4¸ö×Ö½Ú¡£Í¬Àí64λ±àÒëÆ÷£©
short int : 2¸ö×Ö½Ú
int£º 4¸ö×Ö½Ú
unsigned int : 4¸ö×Ö½Ú
float: 4¸ö×Ö½Ú
double: 8¸ö×Ö½Ú
long: 4¸ö×Ö½Ú
long long: 8¸ö×Ö½Ú
unsigned long: 4¸ö×Ö½Ú
64λ±àÒëÆ÷
char £º1¸ö×Ö½Ú
char*(¼´Ö¸Õë±äÁ¿): 8¸ö×Ö½Ú
short int : 2¸ö×Ö½Ú
int£º 4¸ö×Ö½Ú
unsigned int : 4¸ö×Ö½Ú
float: 4¸ö×Ö½Ú
double: 8¸ö×Ö½Ú
long: 8¸ö×Ö½Ú
long long: 8¸ö×Ö½Ú
unsigned long: 8¸ö×Ö½Ú