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

malloc takes only one argument but calloc takes two orguments
malloc takes garbage value initial but calloc takes zero initial value,
calloc()and malloc() also returns NULL if there is not sufficient memory available in the heap

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 bash c?

1065


If one class contains another class as a member, in what order are the two class constructors called a) Constructor for the member class is called first b) Constructor for the member class is called second c) Only one of the constructors is called d) all of the above

1110


Explain the difference between call by value and call by reference in c language?

1163


Who developed c language?

1150


What is array of structure in c programming?

1333


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3149


Write a Program to find whether the given number or string is palindrome.

1339


List some of the static data structures in C?

1244


How main function is called in c?

1169


What is the auto keyword good for?

1231


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1689


In C programming, how do you insert quote characters (‘ and “) into the output screen?

1580


What is the advantage of an array over individual variables?

1294


What does dm mean sexually?

1386


Explain how can I right-justify a string?

1097