unsigned int vs. size_t

前端 未结 8 1795
悲哀的现实
悲哀的现实 2020-11-22 07:16

I notice that modern C and C++ code seems to use size_t instead of int/unsigned int pretty much everywhere - from parameters for C str

8条回答
  •  滥情空心
    2020-11-22 07:48

    If my compiler is set to 32 bit, size_t is nothing other than a typedef for unsigned int. If my compiler is set to 64 bit, size_t is nothing other than a typedef for unsigned long long.

提交回复
热议问题