C
Programming and Technical
What are the differences between malloc() and calloc()?
Read Solution (Total 1)
-
- 1.malloc() creates the memory in byte formate where as calloc() create the memory in block formate.
2.malloc() through created initial value is garbage where as calloc() through created initial value is zero.
3.malloc() require only one argument of data type size where as calloc() require two argument 1.count,size type
where count will provide nomber of element where as
sizetype define data type size
- 10 years agoHelpfull: Yes(4) No(0)
C Other Question