WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / vijay r15
malloc creates the
single block of gn
size by user. Malloc
takes 1ly 1 arg.
Calloc creates
multiple block of gn
size. It will
initialize the
reserved memory block
to zero. Calloc takes
2 arguments
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
What are the different types of objects used in c?
What are the different types of linkage exist in c?
When should you not use a type cast?
What is the difference between pure virtual function and virtual function?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
What are the different file extensions involved when programming in C?
What is hungarian notation? Is it worthwhile?
What is a structural principle?
What are the types of macro formats?
Are there constructors in c?
What is the difference between void main and main in c?
What are the data types present in c?
Explain what are header files and explain what are its uses in c programming?
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above