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
Explain how can I prevent another program from modifying part of a file that I am modifying?
Explain about block scope in c?
Why & is used in scanf in c?
What are the restrictions of a modulus operator?
What is the purpose of the preprocessor directive error?
What is string in c language?
In which header file is the null macro defined?
Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.
What is the use of linkage in c language?
Is anything faster than c?
What is cohesion and coupling in c?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Is there any data type in c with variable size?
what is the diffrenet bettwen HTTP and internet protocol
What is sorting in c plus plus?