Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何打印 uint64_t?
我想u_int64_t用 C 打印。我想知道它的格式说明符吗?我是 C 用户,我想做一个printf().
u_int64_t
printf()
#include <inttypes.h> #include <stdio.h> uint64_t t = 42; printf("%" PRIu64 "\n", t);
您可以将L修饰符用于 64 位整数,例如:
L
u_in64_t number; printf("%Lu", number);