Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the difference between malloc() and calloc() function?

Answer Posted / amritha rose

malloc will allocate memory according to the size we
specified
calloc vil allocate memory as blockwise
and initialize by 0

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can I split up a string into whitespace-separated fields?

1015


How do you override a defined macro?

1215


How is actual parameter different from the formal parameter?

982


What is the full form of getch?

1198


Can you subtract pointers from each other? Why would you?

921


What is variable initialization and why is it important?

1178


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

1953


What is logical error?

1068


Why c is known as a mother language?

1045


What are the usage of pointer in c?

1139


What is nested structure with example?

1025


Explain the ternary tree?

972


Describe explain how arrays can be passed to a user defined function

1051


How to draw the flowchart for structure programs?

9279


Write program to remove duplicate in an array?

1039