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

1.
calloc function takes two argument while malloc takes only 1
2.
by default memory allocated by malloc contains garbage values
whereas that allocated by calloc contains all zero.

Is This Answer Correct ?    49 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a program?

1254


What is the condition that is applied with ?: Operator?

1127


What is far pointer in c?

1306


Are the variables argc and argv are local to main?

1317


Write a program to print all permutations of a given string.

1191


How can you increase the size of a dynamically allocated array?

1183


Is register a keyword in c?

1037


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1067


How can I write a function analogous to scanf?

1177


Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

1084


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3242


What is a double c?

978


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1111


What is the default value of local and global variables in c?

1038


What is the size of empty structure in c?

1078