WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / arshad
1.
calloc function takes two argument while malloc takes only 1
2.
by default memory allocated by malloc contains garbage values
whereas that allocated by calloc contains all zero.
| Is This Answer Correct ? | 49 Yes | 15 No |
Post New Answer View All Answers
Explain the difference between #include "..." And #include <...> In c?
What is the role of && operator in a program code?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b
When should the const modifier be used?
What is the use of pointers in C?
develop algorithms to add polynomials (i) in one variable
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
What is a static function in c?
What is the difference between declaring a variable and defining a variable?
What is %g in c?
What header files do I need in order to define the standard library functions I use?
What is && in c programming?
What the advantages of using Unions?
What is the use of #include in c?
Explain what is the benefit of using enum to declare a constant?