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

mod rewrite - Doing external redirect. .htaccess NS flag not working. How to achieve similar results? -

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