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 / vijay r15

malloc creates the
single block of gn
size by user. Malloc
takes 1ly 1 arg.

Calloc creates
multiple block of gn
size. It will
initialize the
reserved memory block
to zero. Calloc takes
2 arguments

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we add pointers together?

1117


What is the advantage of c?

1207


How can I insert or delete a line (or record) in the middle of a file?

1071


Is c pass by value or reference?

1112


Define Spanning-Tree Protocol (STP)

1182


program to convert a integer to string in c language'

2509


Difference between Function to pointer and pointer to function

1130


What do you mean by Recursion Function?

1181


What does a pointer variable always consist of?

1160


Tell me about low level programming languages.

1191


Explain what is the use of a semicolon (;) at the end of every program statement?

1262


write a c program to find the sum of five entered numbers using an array named number

2208


How many types of sorting are there in c?

1114


What math functions are available for integers? For floating point?

1185


What is the difference between int main and void main?

1101