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 / shruti

malloc will only allocate space in the memory..

calloc will allocate space in the memory as well as
initialise it to a particular value.

Is This Answer Correct ?    134 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does %c mean in c?

1028


Describe the steps to insert data into a singly linked list.

1021


How does #define work?

1011


Why header file is used in c?

1024


What is register variable in c language?

987


write a program to find the given number is prime or not

4656


the question is that what you have been doing all these periods (one year gap)

2017


How can you return multiple values from a function?

1051


What is identifier in c?

966


What is the difference between memcpy and memmove?

968


What are structures and unions? State differencves between them.

1100


What is a struct c#?

999


Explain what is wrong in this statement?

1068


How can I write a function that takes a format string and a variable number of arguments?

1003


What does sizeof return c?

1012