Maximum size of size_t

前端 未结 1 1456
忘了有多久
忘了有多久 2020-12-29 01:44

I know in C return type of sizeof operator is size_t being unsigned integer type defined in . Which means

相关标签:
1条回答
  • 2020-12-29 02:05

    The standard says that SIZE_MAX must be at least 65535.

    It specifies no upper bound, and gcc's implementation is perfectly valid.

    Quoting the reference you cited (emphasis added):

    Its implementation-defined value shall be equal to or greater in magnitude (absolute value) than the corresponding value given below, with the same sign.

    0 讨论(0)
提交回复
热议问题