Motivation for using size_t uint32 uint64 etc

前端 未结 5 1531
南旧
南旧 2021-02-20 05:37

When I reading some code, for integer, they use bunch of different type such as size_t, uint32, uint64 etc. What is the motivation or purpose to do this? Why not ju

5条回答
  •  礼貌的吻别
    2021-02-20 05:56

    For info on size_t, see the Stack Overflow question: What is size_t in C?

    You're right for uint32 and uint64 that they're just being specific about the number of bits that they would like, and that the compiler should interpret them as unsigned.

提交回复
热议问题