can anybody please tell me the exact difference between calloc malloc and realloc
thanx a lot
Printable View
can anybody please tell me the exact difference between calloc malloc and realloc
thanx a lot
Code:calloc
Allocates an array in memory with elements initialized to 0.
void *calloc( size_t num, size_t size );
malloc
Allocates memory blocks.
void *malloc( size_t size );
realloc
Reallocate memory blocks.
void *realloc( void *memblock, size_t size );