SyntaxFix
Write A Post
Hire A Developer
Questions
For portable code, the macros in inttypes.h may be used. They expand to the correct ones for the platform.
E.g. for 64 bit integer, the macro PRId64 can be used.
PRId64
int64_t n = 7; printf("n is %" PRId64 "\n", n);