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() in c
file management?

Answer Posted / kaushik

malloc takes only one argument but calloc takes two orguments
malloc takes garbage value initial but calloc takes zero initial value,
calloc()and malloc() also returns NULL if there is not sufficient memory available in the heap

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the standard predefined macros?

1146


What is the best style for code layout in c?

1102


What is anagram in c?

924


What is the use of ?: Operator?

1140


What is the scope of global variable in c?

998


What does the error 'Null Pointer Assignment' mean and what causes this error?

1224


Subtract Two Number Without Using Subtraction Operator

850


What is null pointer in c?

993


What is 02d in c?

1075


Explain what is dynamic data structure?

1169


If I have a char * variable pointing to the name of a function ..

1172


What is the explanation for the dangling pointer in c?

1117


Explain the use of fflush() function?

1085


What is far pointer in c?

1313


What is meant by int main ()?

1211