What is the difference between calloc and realloc and malloc | Sololearn: Learn to code for FREE!
+ 1

What is the difference between calloc and realloc and malloc

19th Jun 2024, 2:04 PM
Gopisetti Bala Yamuna
Gopisetti Bala Yamuna - avatar
1 Antwort
+ 6
malloc allocates memory calloc allocates and initializes to 0 or NULL realloc changes the size of allocated memory (in another block with the previous contents preserved).
19th Jun 2024, 2:46 PM
ŃÇî´╝Ę´╝í´╝░´╝░´╝╣ ´╝┤´╝» ´╝Ę´╝ą´╝Č´╝░ŃÇŹ
ŃÇî´╝Ę´╝í´╝░´╝░´╝╣ ´╝┤´╝» ´╝Ę´╝ą´╝Č´╝░ŃÇŹ - avatar