What is the difference between malloc() and calloc()?
Answer Posted / hr@tgksolutions.com
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
how to write a c program to print list of fruits in alpabetical order?
What is the hardest programming language?
What is a structure and why it is used?
How can a process change an environment variable in its caller?
write a program using linked list in which each node consists of following information. Name[30] Branch Rollno Telephone no i) Write the program to add information of students in linked list
What is the difference between arrays and pointers?
What is strcmp in c?
what is the structure pointer?
What is the difference between array and pointer?
Is it better to use malloc() or calloc()?
pierrot's divisor program using c or c++ code
Write a program to find factorial of a number using recursive function.
What will the preprocessor do for a program?
What is the difference between the local variable and global variable in c?
What is the benefit of using an enum rather than a #define constant?