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's the difference between calloc() and malloc()?

Answer Posted / k.thejonath

Malloc allocates a block of memory whereas using calloc we
can allocate array of memory blocks and all locations are
initialized to zeros

Is This Answer Correct ?    5 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In c language can we compile a program without main() function?

1114


Explain the bubble sort algorithm.

1040


Explain what is a stream?

1073


What are the different types of control structures in programming?

1113


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2035


How can I use a preprocessorif expression to ?

1044


Is linux written in c?

1030


What is modeling?

1032


Explain what are global variables and explain how do you declare them?

1148


When a c file is executed there are many files that are automatically opened what are they files?

1088


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1248


How do we open a binary file in Read/Write mode in C?

1231


What is meant by gets in c?

1165


Which node is more powerful and can handle local information processing or graphics processing?

1300


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1124