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

c# - Is it possible to remove an existing registration from Autofac container builder? -

asp.net - RadAsyncUpload in code behind, how to? -