What is the difference between malloc() and calloc()?
Answer Posted / nashiinformaticssolutions
malloc(): Allocates a single block of memory without initializing it.
calloc(): Allocates multiple blocks of memory and initializes them to zero.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can I get random integers in a certain range?
please explain clearly about execution of c program in detail,in which stage are the printf sacnf getting into exeecutable code
which is an algorithm for sorting in a growing Lexicographic order
Write a program to swap two numbers without using third variable?
What is the best style for code layout in c?
Is array a primitive data type in c?
Which are low level languages?
What will the code below print when it is executed? int x = 3, y = 4; if (x = 4) y = 5; else y = 2; printf ("x=%d, y=%d ",x,y);
please send me the code for multiplying sparse matrix using c
What is int main () in c?
What does 4d mean in c?
Lists the benefits of c programming language?
A SIMPLE PROGRAM OF GRAPHICS AND THEIR OUTPUT I WANT SEE WAHAT OUTOUT OF GRAPHICS PROGRAM
Tell me can the size of an array be declared at runtime?
Why clrscr is used after variable declaration?