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 / hr@tgksolutions.com

 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

How can I ensure that integer arithmetic doesnt overflow?

1161


What's the best way of making my program efficient?

1101


how should functions be apportioned among source files?

1100


What is #define used for in c?

1062


Why is this loop always executing once?

1054


Can I initialize unions?

1037


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1065


1.int a=10; 2.int b=20; 3. //write here 4.b=30; Write code at line 3 so that when the value of b is changed variable a should automatically change with same value as b. 5.

2148


Why c is procedure oriented?

1069


What are the types of functions in c?

983


Where define directive used?

1087


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1721


Why ca not I do something like this?

1009


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

2048


What do you mean by a sequential access file?

1078