What is the difference from functions calloc and malloc? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответ
+ 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