Difference between size_t and unsigned int?

后端 未结 7 1079
清酒与你
清酒与你 2020-11-28 01:29

I am so confused about size_t. I have searched on the internet and everywhere mentioned that size_t is an unsigned type so, it can represent only n

7条回答
  •  一个人的身影
    2020-11-28 02:09

    size_t is used to store sizes of data objects, and is guaranteed to be able to hold the size of any data object that the particular C implementation can create. This data type may be smaller (in number of bits), bigger or exactly the same as unsigned int.

提交回复
热议问题