Is size_t large enough to represent size of any type? [duplicate]
问题 This question already has answers here : C standard regarding sizeof overflowing size_t (1 answer) What is the maximum size of an array in C? (7 answers) Can calloc() allocate more than SIZE_MAX in total? (7 answers) Closed 1 year ago . Is size_t guaranteed to be large enough to represent size of any type? According to this reference: size_t can store the maximum size of a theoretically possible object of any type (including array). This is generally a reliable reference but I could not find