WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?
Answer Posted / venkateswarlupanidapu
malloc occupies byte of space in memory location and holds
only one argument of data bytes.
calloc occupies and holds 2 bytes of memory in address
location with arguments databytes,number of data bytes.
calloc occupies in structure of blocks and malloc allocates
in struncture of databytes.
| Is This Answer Correct ? | 14 Yes | 12 No |
Post New Answer View All Answers
Explain what’s a signal? Explain what do I use signals for?
What is #pragma statements?
What is string function c?
Why clrscr is used in c?
What is the best way to comment out a section of code that contains comments?
Write a program to print fibonacci series using recursion?
Why c is faster than c++?
Is calloc better than malloc?
What is openmp in c?
What is hashing in c?
What is the acronym for ansi?
What are the types of unary operators?
Which is an example of a structural homology?
Differentiate fundamental data types and derived data types in C.
In a switch statement, what will happen if a break statement is omitted?