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
What is the use of linkage in c language?
What is the correct code to have following output in c using nested for loop?
What is define directive?
Write a program to implement queue.
How do you define a function?
What does the && operator do in a program code?
What is function prototype?
Write a code on reverse string and its complexity.
How can I change the size of the dynamically allocated array?
What does calloc stand for?
What is a char c?
What is a program flowchart and explain how does it help in writing a program?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)
What is dynamic variable in c?