C Dynamic Memory Allocation - Allocation Size Limits

Allocation Size Limits

The largest possible memory block malloc can allocate depends on the host system, particularly the size of physical memory and the operating system implementation. Theoretically, the largest number should be the maximum value that can be held in a size_t type, which is an implementation-dependent unsigned integer representing the size of an area of memory. The maximum value is 2CHAR_BIT × sizeof(size_t) − 1, or the constant SIZE_MAX in the C99 standard.

Read more about this topic:  C Dynamic Memory Allocation

Famous quotes containing the words size and/or limits:

    “The obese is ... in a total delirium. For he is not only large, of a size opposed to normal morphology: he is larger than large. He no longer makes sense in some distinctive opposition, but in his excess, his redundancy.”
    —Jean Baudrillard (b. 1929)

    “It is of the essence of imaginative culture that it transcends the limits both of the naturally possible and of the morally acceptable.”
    —Northrop Frye (b. 1912)