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() function?



what is the difference between malloc() and calloc() function?..

Answer / amritha rose

malloc will allocate memory according to the size we
specified
calloc vil allocate memory as blockwise
and initialize by 0

Is This Answer Correct ?    9 Yes 1 No

Post New Answer

More C Interview Questions

Here is alphabets : abcdefgh 1) how to reverse. as hgfedcba 2) after reversal, how to group them in a pair hg fe dc ba.

2 Answers  


What is the difference b/w Structure & Union?

3 Answers  


i want to make a program in which we use input having four digits(4321) and get output its reciprocal(1234).

1 Answers  


What is array of structure in c programming?

0 Answers  


What do you understand by friend-functions? How are they used?

0 Answers   iNautix,


What is ponter?

0 Answers   TCS,


What are the types of type specifiers?

0 Answers  


How many main () function we can have in a project?

0 Answers  


What's wrong with "char *p; *p = malloc(10);"?

5 Answers  


What are the advantages and disadvantages of c language?

0 Answers  


what does ‘segmentation violation’ mean?

1 Answers  


What are the types of pointers in c?

0 Answers  


Categories