首页 > 其他 > 详细

源码测试

时间:2014-06-28 23:10:47      阅读:432      评论:0      收藏:0      [点我收藏+]
 1 // typesize.c -- 输出类型的大小
 2 #include <stdio.h>
 3 int main(void)
 4 {
 5     //C99为类型大小提供一个%zd说明符
 6 
 7     printf("Type int has a size of %u bytes. \n", sizeof(int));
 8     printf("Type char has a size of %u bytes. \n", sizeof(char));
 9     printf("Type long has a size of %u bytes. \n", sizeof(long));
10     printf("Type double has a size of %u bytes. \n", sizeof(double));
11 
12     return 0;
13 
14 }

 

源码测试,布布扣,bubuko.com

源码测试

原文:http://www.cnblogs.com/stayathust/p/3794248.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!