On 3/7/06, Manu <[EMAIL PROTECTED]> 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) ?

Nope. The C99 standard says (section 7.20.3):

"The order and contiguity of storage allocated by successive calls to
the calloc,
malloc, and realloc functions is unspecified."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/algogeeks
-~----------~----~----~----~------~----~------~--~---

Reply via email to