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

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);
(0)

相关推荐