c - about malloc calloc and realloc -


possible duplicates:
how malloc() implemented internally?
how free , malloc work in c?

whenever write program using malloc , calloc , realloc varies go , sit, i.e in part of memory go , reside. whether variables (in cases) allotted contiguous space or variables go , sit wherever space available

the requested memory allocated contiguously on heap if enough space available. otherwise, functions return null indicate failure.


Comments

Popular posts from this blog

mysql - How to insert just year and month into date field? -

c# - Detect changes in ObjectSet in Entity Framework 4.0? -