标签:
1 #include <stdio.h> 2 int main() 3 { 4 printf("The byte of the variables are:\n"); 5 printf("int:%d bytes\n",sizeof(int)); 6 printf("char:%d bytes\n",sizeof(char)); 7 printf("short:%d bytes\n",sizeof(short)); 8 printf("long:%d bytes\n",sizeof(long)); 9 printf("float:%d bytes\n",sizeof(float)); 10 printf("double:%d bytes\n",sizeof(double)); 11 printf("long double:%d bytes\n",sizeof(long double)); 12 return 0; 13 }
标签:
原文地址:http://www.cnblogs.com/lovywinsy/p/5140985.html