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

malloc() doesnot initialize the allocated memory
calloc() initializes the allocated memory to ZERO

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is more efficient, a switch statement or an if else chain?

1027


Define circular linked list.

1031


What are the benefits of c language?

1181


Explain the meaning of keyword 'extern' in a function declaration.

1155


What are dangling pointers in c?

1234


How do you declare a variable that will hold string values?

1179


Explain what are the __date__ and __time__ preprocessor commands?

1124


What is a list in c?

1034


string reverse using recursion

2468


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

1112


What does double pointer mean in c?

1180


What is wrong with this program statement?

1039


How is a macro different from a function?

1186


What are the header files used in c language?

1055


How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same

1105