what is the difference between malloc() and calloc() function?
Answer Posted / amritha rose
malloc will allocate memory according to the size we
specified
calloc vil allocate memory as blockwise
and initialize by 0
Is This Answer Correct ? | 9 Yes | 1 No |
Post New Answer View All Answers
What happens if a header file is included twice?
What are types of functions?
Is it possible to pass an entire structure to functions?
What is a volatile keyword in c?
where are auto variables stored? What are the characteristics of an auto variable?
What's the right way to use errno?
What is the purpose of void pointer?
What is the scope of global variable in c?
What is the use of void pointer and null pointer in c language?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
what will be maximum number of comparisons when number of elements are given?
How we can insert comments in a c program?
What is the sizeof () operator?
Differentiate between #include<...> and #include '...'
Explain what is wrong with this statement? Myname = ?robin?;