WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / vijay r15
malloc creates the
single block of gn
size by user. Malloc
takes 1ly 1 arg.
Calloc creates
multiple block of gn
size. It will
initialize the
reserved memory block
to zero. Calloc takes
2 arguments
| Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
main() { printf("hello"); fork(); }
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1
What is const keyword in c?
What does c value mean?
Why static is used in c?
What is modeling?
How can I delete a file?
How can I send mail from within a c program?
What is a pointer and how it is initialized?
Explain about C function prototype?
Can we add pointers together?
Write a Program to accept different goods with the number, price and date of purchase and display them
What is the translation phases used in c language?
Why c is a procedural language?
How can I copy just a portion of a string?