What is the difference from functions calloc and malloc? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the difference from functions calloc and malloc?

What is the difference from functions calloc and malloc?

6th Apr 2017, 2:03 PM
Андрей Климов
Андрей Климов - avatar
1 Answer
+ 3
https://www.tutorialspoint.com/c_standard_library/c_function_calloc.htm "The difference in malloc and calloc is that malloc does not set the memory to zero where as calloc sets allocated memory to zero."
6th Apr 2017, 2:38 PM
Álvaro