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

linux - Mailx and Gmail nss config dir -

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

php - Mysql PK and FK char(36) vs int(10) -