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 time null in c?
Why is extern used in c?
What are the disadvantages of c language?
What is a structure in c language. how to initialise a structure in c?
Can true be a variable name in c?
What is a spanning Tree?
Explain what is the difference between a free-standing and a hosted environment?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
Write a program to reverse a given number in c?
How to delete a node from linked list w/o using collectons?
Explain the ternary tree?
What’s a signal? Explain what do I use signals for?
What is the importance of c in your views?
What are the different data types in C?
all c language question