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

malloc will only allocate space in the memory..

calloc will allocate space in the memory as well as
initialise it to a particular value.

Is This Answer Correct ?    134 Yes 39 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the advantages of a macro over a function?

1141


What are the types of type specifiers?

1034


What is meant by high-order and low-order bytes?

1047


how many errors in c explain deply

2087


How can you convert integers to binary or hexadecimal?

1028


What is a keyword?

1164


When is a void pointer used?

1238


Write a program to generate random numbers in c?

1095


Explain how are portions of a program disabled in demo versions?

1118


What is string constants?

1146


What is variable in c example?

1069


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

2128


using for loop sum 2 number of any 4 digit number in c language

2336


pgm to find number of words starting with capital letters in a file(additional memory usage not allowed)(if a word starting with capital also next letter in word is capital cann't be counted twice)

2332


What are local variables c?

1015