WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / ananth kumar
malloc
Holds 1 argument data type
allocates memory byte equivalent to data type
not init alloted memory
Calloc
Holds 2 arguments, data type and number of datas (n)
allocates memory block equivalent to n * data type
clears alloted memory with 0
Is This Answer Correct ? | 173 Yes | 39 No |
Post New Answer View All Answers
Why is C language being considered a middle level language?
How can type-insensitive macros be created?
What is the size of empty structure in c?
Explain what is the advantage of a random access file?
Explain what is the benefit of using #define to declare a constant?
How would you rename a function in C?
Explain what is page thrashing?
What are compound statements?
I just typed in this program, and it is acting strangely. Can you see anything wrong with it?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
What is bss in c?
Explain how can you determine the size of an allocated portion of memory?
What are conditional operators in C?
Explain modulus operator. What are the restrictions of a modulus operator?
What is operator precedence?