difference between stdint.h and inttypes.h
问题 What is the difference between stdint.h and inttypes.h? If none of them is used, uint64_t is not recognized but with either of them it is a defined type. 回答1: See the wikipedia article for inttypes.h. Use stdint.h for a minimal set of definitions; use inttypes.h if you also need portable support for these in printf, scanf, et al. 回答2: stdint.h Including this file is the "minimum requirement" if you want to work with the specified-width integer types of C99 (i.e. "int32_t", "uint16_t" etc.).