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

What are the different types of objects used in c?

1038


What are the different types of linkage exist in c?

1036


When should you not use a type cast?

1130


What is the difference between pure virtual function and virtual function?

1136


find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2

1996


What are the different file extensions involved when programming in C?

1297


What is hungarian notation? Is it worthwhile?

1233


What is a structural principle?

1177


What are the types of macro formats?

1128


Are there constructors in c?

1017


What is the difference between void main and main in c?

1162


What are the data types present in c?

1174


Explain what are header files and explain what are its uses in c programming?

1162


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1122


main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above

1110