New course! Every coder should learn Generative AI!
Try a free lesson+ 1
What is the difference between calloc and realloc and malloc
1 Answer
+ 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).