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

#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
}

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266715.html

(0)
上一篇 2022年6月7日
下一篇 2022年6月7日

相关推荐

发表回复

登录后才能评论