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 / jayakrishnan d

1.malloc is only one argument function while malloc is a
two arguments function.
2.malloc allocates bytes of memory while calloc allocates
array of memory.
3.malloc does not initialize the size of allocated memory ie
gabage value while calloc is initialize size of allocated
memory to '0'.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In C, What is the #line used for?

2214


Is boolean a datatype in c?

1069


how to find anagram without using string functions using only loops in c programming

3192


how to write a c program to print list of fruits in alpabetical order?

2306


Explain how do you determine a file’s attributes?

1050


What is a spanning Tree?

1593


a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion

2780


Explain what is #line used for?

1072


‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

2881


Explain 'far' and 'near' pointers in c.

1144


What is pass by reference in functions?

848


Why & is used in scanf in c?

1102


What are qualifiers?

1051


Why c is faster than c++?

1041


Can we access the array using a pointer in c language?

1050