摘要: 这个和机器字长及编译器有关系:所以,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: 阅读全文
posted @ 2013-06-03 10:23 ubersexual 阅读(963) 评论(0) 推荐(0) 编辑