Nowy kurs! Każdy programista powinien nauczyć się Generative AI!
Wypróbuj darmową lekcję+ 1
What is the difference between calloc and realloc and malloc
1 Odpowiedź
+ 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).