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

Explain Function Pointer?

1103


What is the difference between the local variable and global variable in c?

927


using for loop sum 2 number of any 4 digit number in c language

2259


application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above

1014


Can the “if” function be used in comparing strings?

982


Is null always defined as 0(zero)?

1042


Explain how can you be sure that a program follows the ansi c standard?

1398


How can I call fortran?

993


How do you view the path?

1077


Is that possible to store 32768 in an int data type variable?

1033


given post order,in order construct the corresponding binary tree

2724


Should I learn c before c++?

1177


What are the usage of pointer in c?

1122


What is call by value in c?

953


what is the basis for selection of arrays or pointers as data structure in a program

4250