In article <11*********************@p10g2000cwp.googlegroups. com>,
Manu <ma************@gmail.com> wrote:
Can we say that the return addresses from the various malloc function
calls, in a program, will always be in a predefined order (increasing
or decreasing, depeding on how the heap is managed) ?
No. Even supposing your implementation happened to allocate memory
sequentially (which is not required, and many implementations don't),
what do you think would happen after you freed some memory? The point
of freeing it is so that it can be used again.
-- Richard