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 / abhishek pathak mnnit

1- malloc() takes one argument while calloc takes 2 argument.
2- default value of malloc is garvage while calloc is 0;
3- malloc allocate memory in contiguous form while calloc
allocate memory in contiguous form if not avilable the takes
diffrent place.

Is This Answer Correct ?    88 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is 2c dna?

1075


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2106


What is extern variable in c with example?

989


Why is structure padding done in c?

1129


What is memory leak in c?

1125


Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1162


What are structure members?

1090


Do you know the use of 'auto' keyword?

1191


What is the meaning of c in c language?

1159


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1250


What is a macro in c preprocessor?

1097


What is the difference between array and linked list in c?

1148


what are non standard function in c

1908


Explain what are global variables and explain how do you declare them?

1161


why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above

1153