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

Answer Posted / vijay

Calloc allocates the array of blocks of memory whearas
malloc allocates the memory of the size given as an
argument.

Is This Answer Correct ?    12 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of comments allowed in c++?

581


What is c++ flowchart?

677


What is abstraction with real time example?

621


What is private, public and protected inheritance?

595


What is constructor in C++?

631






How much maximum can you allocate in a single call to malloc()?

636


What happens when you make call 'delete this;'?

603


What will happen if a pointer is deleted twice?

726


Is java the same as c++?

547


Can turbo c++ run c program?

631


What are friend classes? What are advantages of using friend classes?

608


List the features of oops in c++?

576


What is the return value of the insertion operator?

605


What information can an exception contain?

669


What are c++ files?

579