WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / md ajij
1.malloc() allocate one block of space in memory , argument
of the malloc is the size of the block.
where as calloc() allocate multiple blocks in the memory
,argument of the malloc() is the size of a block and number
of blocks.
2. malloc() takes garbage value at the initial time where
initial value of calloc() is zero.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Mention four important string handling functions in c languages .
What is the difference between typedef and #define?
how to create duplicate link list using C???
What does & mean in scanf?
What are the 4 data types?
What does int main () mean?
Write a program to display all the prime nos from 1 to 1000000, your code should not take time more than a minute to display all the nos.
What is pointer to pointer in c language?
What does dm mean sexually?
What is function what are the types of function?
What is a #include preprocessor?
Explain what are preprocessor directives?
Differentiate between functions getch() and getche().
What is the best way to store flag values in a program?
What is pragma c?