首页 > 其他 > 详细

inttypes.h

时间:2014-08-17 22:35:12      阅读:585      评论:0      收藏:0      [点我收藏+]

int类型别名

 1 #include <stdio.h>
 2 #include <inttypes.h>
 3 
 4 #include <stdio.h>
 5 #include <inttypes.h>
 6 
 7 int  main(void)
 8 {
 9     int16_t a = 65535;
10     uint16_t b = 65535;
11 
12     int32_t c = 4294967295;
13     uint32_t d = 4294967295;
14 
15     int_least8_t e = 255;
16     uint_least8_t f = 255;
17 
18     int_fast8_t g = 255;
19     uint_fast8_t h = 255;
20 
21     printf("a = %" PRId16 "\n", a);
22     printf("b = %" PRId16 "\n", b);
23     printf("c = %" PRId32 "\n", c);
24     printf("d = %" PRId32 "\n", d);
25     printf("e = %" PRId8 "\n", e);
26     printf("f = %" PRId8 "\n", f);
27     printf("g = %" PRId8 "\n", g);
28     printf("h = %" PRId8 "\n", h);
29 
30     return 0;
31 }

bubuko.com,布布扣

 

inttypes.h,布布扣,bubuko.com

inttypes.h

原文:http://www.cnblogs.com/itpoorman/p/3918339.html

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