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 programming, what command or code can be used to determine if a number of odd or even?
Can you return null in c?
#include
What is the advantage of an array over individual variables?
What is external variable in c?
how could explain about job profile
Can you explain the four storage classes in C?
What are the advantages of Macro over function?
Explain how do you search data in a data file using random access method?
using only #include
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What are the disadvantages of a shell structure?
`write a program to display the recomended action depends on a color of trafic light using nested if statments
How can you tell whether two strings are the same?
Why void is used in c?