What's the difference between calloc() and malloc()?
Answer Posted / bhaswati
malloc allocates m bytes means it takes one arguments.but calloc allocate m times n bytes and initialized the memory location to zero.it takes two arguments.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Why do we use & in c?
What is extern variable in c with example?
Write a program to reverse a given number in c?
What is string length in c?
What is pointers in c?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Are c and c++ the same?
Is there any demerits of using pointer?
What is a null pointer in c?
what is the difference between class and unio?
What are the properties of union in c?
What is pointer to pointer in c?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
What is bubble sort in c?
What is typeof in c?