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

Answer Posted / glibwaresoftsolutions

 malloc(): Allocates a single block of memory without initializing it.
 calloc(): Allocates multiple blocks of memory and initializes them to zero.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best way to store flag values in a program?

1017


What is the meaning of && in c?

969


What is advantage of pointer in c?

1132


Explain what are binary trees?

1034


If you know then define #pragma?

1060


How to write c functions that modify head pointer of a linked list?

950


What is variable declaration and definition in c?

866


Should I learn data structures in c or python?

984


What is an array in c?

1006


What is the size of empty structure in c?

1027


What is array of structure in c?

1111


How can type-insensitive macros be created?

1140


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1045


Do you know the use of fflush() function?

1018


What are structures and unions? State differencves between them.

1111