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

How many types of modularization are there in c++?

767


What is const pointer and const reference?

808


Can you please explain the difference between overloading and overriding?

802


what do you mean by volatile variable?

771


What are the vectors in c++?

762


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

972


What are the advantages of c++ over c?

804


What is flush c++?

710


What do you mean by overhead in c++?

788


Is vector a class in c++?

774


What does flush do c++?

781


What data encapsulation is in c++?

766


What is setbase c++?

813


How many types of scopes are there in c++?

771


What is the use of c++ programming language in real life?

757