C语言之如何输出uint32_t和uint64_t和16进制

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u011068702/article/details/77938756

1、输出uint32_t

uint32_t a = 888;

printf("a is %ld",  a);



2、输出uint64_t

uint64_t b = 888;

printf("b is %lu", b);

printf("b is %lld", b);



3、输出16进制

int c =16;

printf("c is 0x%08x", c);



展开阅读全文

没有更多推荐了,返回首页