WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / kaushik
malloc takes only one argument but calloc takes two orguments
malloc takes garbage value initial but calloc takes zero initial value,
calloc()and malloc() also returns NULL if there is not sufficient memory available in the heap
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the standard predefined macros?
What is the best style for code layout in c?
What is anagram in c?
What is the use of ?: Operator?
What is the scope of global variable in c?
What does the error 'Null Pointer Assignment' mean and what causes this error?
Subtract Two Number Without Using Subtraction Operator
What is null pointer in c?
What is 02d in c?
Explain what is dynamic data structure?
If I have a char * variable pointing to the name of a function ..
What is the explanation for the dangling pointer in c?
Explain the use of fflush() function?
What is far pointer in c?
What is meant by int main ()?