#include void maino short s unsigned u long int I float f char ch double d intf("%d, %od, %d, %d, %d, %d, %d\n", sizeof(i), sizeof(s), sizeof(u), sizeof(D), sizeof(f), sizeof(ch) sizeof(d)) /分别输出各类型变量的长度
#include void main() { int i; short s; unsigned u; long int l; float f; char ch; double d; printf("%d,%d,%d,%d,%d,%d,%d\n",sizeof(i),sizeof(s),sizeof(u),sizeof(l),sizeof(f),sizeof(ch) ,sizeof(d)); /*分别输出各类型变量的长度*/ }