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 / venkateswarlupanidapu

malloc occupies byte of space in memory location and holds
only one argument of data bytes.
calloc occupies and holds 2 bytes of memory in address
location with arguments databytes,number of data bytes.
calloc occupies in structure of blocks and malloc allocates
in struncture of databytes.

Is This Answer Correct ?    14 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between array and structure in c?

1242


Explain what is the benefit of using an enum rather than a #define constant?

1274


Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant

1205


Explain the use of function toupper() with and example code?

1170


What is the explanation for modular programming?

1269


what is bit rate & baud rate? plz give wave forms

2028


How is a macro different from a function?

1243


What are compound statements?

1238


Explain output of printf("Hello World"-'A'+'B'); ?

1557


difference between Low, Middle, High Level languages in c ?

2139


Can we initialize extern variable in c?

1182


what is the function of pragma directive in c?

1179


What is the process of writing the null pointer?

1059


Do you know pointer in c?

1106


what do u mean by Direct access files? then can u explain about Direct Access Files?

2145