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

malloc () for allocating the single block of memory
calloc () for allocating multiple blocks of memory
the values assigned are garbage in case of malloc() and
proper values (zeros) are assigned in case of calloc().

Is This Answer Correct ?    114 Yes 34 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how can I prevent another program from modifying part of a file that I am modifying?

1094


Explain about block scope in c?

1093


Why & is used in scanf in c?

1102


What are the restrictions of a modulus operator?

1128


What is the purpose of the preprocessor directive error?

1276


What is string in c language?

1161


In which header file is the null macro defined?

1347


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2327


What is the use of linkage in c language?

1067


Is anything faster than c?

1016


What is cohesion and coupling in c?

1035


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

2060


Is there any data type in c with variable size?

1103


what is the diffrenet bettwen HTTP and internet protocol

1840


What is sorting in c plus plus?

980