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 / md ajij

1.malloc() allocate one block of space in memory , argument
of the malloc is the size of the block.
where as calloc() allocate multiple blocks in the memory
,argument of the malloc() is the size of a block and number
of blocks.

2. malloc() takes garbage value at the initial time where
initial value of calloc() is zero.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is a const pointer?

1036


write a progrmm in c language take user interface generate table using for loop?

1996


Explain what’s a signal? Explain what do I use signals for?

1053


What is the difference between arrays and pointers?

1067


What does #pragma once mean?

1111


What is the use of #define preprocessor in c?

1025


How can I convert a number to a string?

1095


What does main () mean in c?

1059


What are the two types of functions in c?

943


What does *p++ do? What does it point to?

1004


What is bubble sort in c?

1002


What is a pointer and how it is initialized?

1082


What is volatile variable in c with example?

997


Explain what is a static function?

1047


Explain what header files do I need in order to define the standard library functions I use?

1115