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

Which is an example of a structural homology?

1328


What does 2n 4c mean?

1236


Under what circumstances does a name clash occur?

1204


What is a protocol in c?

1013


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1158


Explain what is the difference between #include and #include 'file' ?

1029


What are valid signatures for the Main function?

1238


What is a file descriptor in c?

1137


Explain the difference between call by value and call by reference in c language?

1115


What is string in c language?

1162


Explain logical errors? Compare with syntax errors.

1077


Why functions are used in c?

1142


What is the difference between call by value and call by reference in c?

1168


What are Macros? What are its advantages and disadvantages?

1168


How can I get random integers in a certain range?

1070