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
What is the difference between test design and test case design?
what is the difference between class and unio?
to find the closest pair
What are the 5 types of organizational structures?
Is exit(status) truly equivalent to returning the same status from main?
Why C language is a procedural language?
Can stdout be forced to print somewhere other than the screen?
What are void pointers in c?
What is calloc() function?
Where are local variables stored in c?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
What are the types of arrays in c?
Tell me about low level programming languages.
What are Macros? What are its advantages and disadvantages?
How can I find out how much free space is available on disk?