What determines how much memory can be allocated?
问题 This is a follow-up to my previous question about why size_t is necessary. Given that size_t is guaranteed to be big enough to represent the largest size of a block of memory you can allocate (meaning there can still be some integers bigger than size_t), my question is... What determines how much you can allocate at once? 回答1: The architecture of your machine, the operating system (but the two are intertwined) and your compiler/set of libraries determines how much memory you can allocate at