How to print 如何输出 int64_t,uint64_t的值 in C

For int64_t type:

int64_t t; printf("%"PRId64"
", t);

for uint64_t type:

uint64_t t; printf("%"PRIu64"
", t);

you can also use PRIx64 to print in hexadecimal.

These macros are defined in inttypes.h

原文地址:https://www.cnblogs.com/elesos/p/6090186.html