WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / jayakrishnan d
1.malloc is only one argument function while malloc is a
two arguments function.
2.malloc allocates bytes of memory while calloc allocates
array of memory.
3.malloc does not initialize the size of allocated memory ie
gabage value while calloc is initialize size of allocated
memory to '0'.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
In C, What is the #line used for?
Is boolean a datatype in c?
how to find anagram without using string functions using only loops in c programming
how to write a c program to print list of fruits in alpabetical order?
Explain how do you determine a file’s attributes?
What is a spanning Tree?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion
Explain what is #line used for?
‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .
Explain 'far' and 'near' pointers in c.
What is pass by reference in functions?
Why & is used in scanf in c?
What are qualifiers?
Why c is faster than c++?
Can we access the array using a pointer in c language?