What is the difference between "calloc" and "malloc"?

Answer Posted / samveethsingh

malloc:
malloc create the single block of given size by user
calloc:
calloc creates multiple blocks of given size

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write about the members that a derived class can add?

559


What is heap sort in c++?

591


write a porgram in c++ that reads an integer and print the biggest digit in the number

1759


What is a string example?

541


What is near, far and huge pointers? How many bytes are occupied by them?

646






What are the general quetions are in DEna bank manager IT/System interviews?

1529


Which is most difficult programming language?

574


What is lvalue?

685


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

611


What is a forward referencing and when should it be used?

570


Explain the concept of memory leak?

614


What is #include sstream?

611


Write about the use of the virtual destructor?

597


What does the ios::ate argument do?

654


What do you mean by enumerated data type?

564