WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / abhishek pathak mnnit
1- malloc() takes one argument while calloc takes 2 argument.
2- default value of malloc is garvage while calloc is 0;
3- malloc allocate memory in contiguous form while calloc
allocate memory in contiguous form if not avilable the takes
diffrent place.
Is This Answer Correct ? | 88 Yes | 18 No |
Post New Answer View All Answers
If you know then define #pragma?
What does stand for?
Explain the difference between call by value and call by reference in c language?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What is pre-emptive data structure and explain it with example?
What are the types of data types and explain?
What do you understand by friend-functions? How are they used?
When should we use pointers in a c program?
Why c is faster than c++?
What is main return c?
I came across some code that puts a (void) cast before each call to printf. Why?
how to make a scientific calculater ?
Can a variable be both constant and volatile?
Can you write a programmer for FACTORIAL using recursion?
Is it fine to write void main () or main () in c?