#define __STDC_FORMAT_MACROS #include <inttypes.h> #include <stdio.h> int main(){ uint64_t ui64 = 64; uint32_t ui32 = 32; uint16_t ui16 = 16; printf("test uint64_t : %" PRIu64 "\n", ui64); printf("test uint32_t : %" PRIu32 "\n", ui32); printf("test uint16_t : %" PRIu16 "\n", ui16); return 0; }
相关文章
- 从uint32_t [16]数组到uint32_t变量序列的64位副本
- [vscode][nrf51][nrf52] uint8_t uint16_t uint32_t 等等变量异常
- c/c++: uint8_t uint16_t uint32_t uint64_t size_t ssize_t数据类型
- C语言之如何输出uint32_t和uint64_t和16进制
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型 - 大总结,看完全明白了
- ubuntu下打印unit64_t size_t uint32_t 类型
- uint8_t、uint16_t、uint32_t、uint64_t、size_t、ssize_t、
- uint8_t / uint16_t / uint32_t /uint64_t 的简单介绍
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型
- uint8_t / uint16_t / uint32_t /uint64_t 是什么数据类型?