WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / prakashdasari
malloc () for allocating the single block of memory
calloc () for allocating multiple blocks of memory
the values assigned are garbage in case of malloc() and
proper values (zeros) are assigned in case of calloc().
Is This Answer Correct ? | 114 Yes | 34 No |
Post New Answer View All Answers
What is the need of structure in c?
Explain how can I open a file so that other programs can update it at the same time?
What is an array? What the different types of arrays in c?
What is typedef struct in c?
What is use of bit field?
What is a substring in c?
define string ?
What is malloc() function?
Is stack a keyword in c?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
How is a null pointer different from a dangling pointer?
Differentiate Source Codes from Object Codes
What are preprocessor directives in c?
What is the stack in c?
What is %lu in c?