Difference between calloc and realloc | Sololearn: Learn to code for FREE!
+ 5

Difference between calloc and realloc

20th Nov 2019, 4:16 AM
Sumithra - avatar
3 Antworten
+ 11
This article explains it neatly. Go have a read: ÔÇťC Programming Language: FunctionsÔÇŐÔÇöÔÇŐmalloc(), calloc(), realloc(), and free()ÔÇŁ by jraleman https://link.medium.com/eUqgDuNcL1
20th Nov 2019, 4:21 AM
­čĹĹ Prometheus ­č窭čçČ
­čĹĹ Prometheus ­č窭čçČ - avatar
20th Nov 2019, 4:32 AM
Rohitman - avatar
+ 8
calloc is used to get a chunk of memory from heap area.... Used for getting memory during runtime or dynamically.... Realloc is used to change the size or reallocate the memory which we get dynamically
20th Nov 2019, 4:20 AM
Saurabh B
Saurabh B - avatar