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

malloc takes only one argument but calloc takes two orguments
malloc takes garbage value initial but calloc takes zero initial value,
calloc()and malloc() also returns NULL if there is not sufficient memory available in the heap

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters

2298


What are the different data types in C?

1201


Can an array be an Ivalue?

1090


What is the general form of #line preprocessor?

991


Why is c known as a mother language?

1239


What is static function in c?

1113


Is main is user defined function?

1142


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

1204


What are the salient features of c languages?

1099


With the help of using classes, write a program to add two numbers.

1035


Why is c fast?

1056


Describe wild pointers in c?

1110


Who invented b language?

1406


Explain what does it mean when a pointer is used in an if statement?

1062


how to find binary of number?

4445