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 / nazia wasim

malloc and calloc both are used to allocate
memory dynamically but the difference is
malloc allocates single block of memory and
calloc allocates multiple block of memory as
per the requirement.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you have any idea how to compare array with pointer in c?

1052


What does sizeof return c?

1067


Explain how many levels deep can include files be nested?

1078


how logic is used

1973


What is double pointer in c?

1042


How can you find the day of the week given the date?

1204


What is modeling?

1055


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

1134


How can a string be converted to a number?

1023


if a is an integer variable, a=5/2; will return a value a) 2.5 b) 3 c) 2 d) 0

1952


how to write a c program to print list of fruits in alpabetical order?

2306


What do header files do?

1078


Is boolean a datatype in c?

1069


Explain what is the advantage of a random access file?

1124


How can I call fortran?

1047