孤独的猫

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
#include <stdio.h>
void main()
{
    printf("An int is %d bytes\n",sizeof(int));
    printf("A short is %d bytes\n",sizeof(short));
    printf("A long is %d bytes\n",sizeof(long));
    printf("An unsigned int is %d bytes\n",sizeof(unsigned int));
    printf("An unsigned short is %d bytes\n",sizeof(unsigned short));
    printf("An unsigned long is %d bytes\n\n",sizeof(unsigned long));
    printf("A float is %d bytes\n",sizeof(float));
    printf("A double is %d bytes\n\n",sizeof(double));
    printf("A char is %d bytes\n",sizeof(char));
    printf("An unsigned char is %d bytes\n",sizeof(unsigned char));
}
posted on 2011-06-26 12:43  孤独的猫  阅读(300)  评论(0编辑  收藏  举报