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 / divya sharma

malloc takes the single argument nd calloc takes two argument
malloc initialize byte of memory while calloc initialize the
block of memory

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is the difference between the expression '++a' and 'a++'?

1265


Explain what is the advantage of a random access file?

1179


How do you convert strings to numbers in C?

1298


can we implement multi-threads in c.

1179


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

1305


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.

1157


What is the difference between printf and scanf )?

1153


In which header file is the null macro defined?

1403


What is the use of ?

1086


Which function in C can be used to append a string to another string?

1275


Differentiate between full, complete & perfect binary trees.

1172


how to count no of words,characters,lines in a paragraph.

4472


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1266


What is your stream meaning?

1337


Can a file other than a .h file be included with #include?

1223