系统使用哪种类型的大小?

#include stdio.hint main(void){printf(Type int has a size of %zd bytes.\\n, sizeof(int));

编程学习网为您整理以下代码实例,主要实现:系统使用哪种类型的大小?,希望可以帮到各位朋友。

#include <stdio.h>

int main(voID)
{

    printf("Type int has a size of %zd bytes.\n", sizeof(int));
    printf("Type char has a size of %zd bytes.\n", sizeof(char));
    printf("Type long has a size of %zd bytes.\n", sizeof(long));
    printf("Type long long has a size of %zd bytes.\n",sizeof(long long));
    printf("Type double has a size of %zd bytes.\n",sizeof(double));
    printf("Type long double has a size of %zd bytes.\n",sizeof(long double));
    return 0;//from w w w.  java2 s. c  o m
}
本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐