WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / kaushik
malloc takes only one argument but calloc takes two orguments
malloc takes garbage value initial but calloc takes zero initial value,
calloc()and malloc() also returns NULL if there is not sufficient memory available in the heap
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is bash c?
If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above
Explain the difference between call by value and call by reference in c language?
Who developed c language?
What is array of structure in c programming?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
Write a Program to find whether the given number or string is palindrome.
List some of the static data structures in C?
How main function is called in c?
What is the auto keyword good for?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
In C programming, how do you insert quote characters (‘ and “) into the output screen?
What is the advantage of an array over individual variables?
What does dm mean sexually?
Explain how can I right-justify a string?