Re: malloc realloc and pointers



CBFalconer wrote, On 30/11/07 00:42:
ravi wrote:

<snip>

3. whats the maximum memory size that we can allocate dynamically by
calling malloc() ?

Depends on the system. All you can find out is that a malloc
(etc.) request is fulfilled or rejected.

<snip>

You also know that you cannot allocate more than (size_t)-1 bytes with a single call to malloc.
--
Flash Gordon
.