基本数据类型

#include <stdio.h>

int main()
{
    char c = 0;
    short s = 0;
    int i = 0;
    
    printf("%d, %d\n", sizeof(char), sizeof(c));
    printf("%d, %d\n", sizeof(short), sizeof(s));
    printf("%d, %d\n", sizeof(int), sizeof(i));
    
    return 0;
}

posted @ 2016-12-08 17:31  王小波私人定制  阅读(121)  评论(0编辑  收藏  举报
DON'T FORGET TO HAVE FUN