WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c
file management?

Answer Posted / shirish

malloc: malloc create the single block of given size by user
calloc: calloc creates multiple blocks of given size

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by keywords in c?

614


What is keyword in c?

588


write a program to print largest number of each row of a 2D array

1861


What are the properties of union in c?

577


What is structure in c definition?

563






Why can't I perform arithmetic on a void* pointer?

629


What is the use of gets and puts?

590


the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none

637


What would be an example of a structure analogous to structure c?

569


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

3722


Why #include is used in c language?

586


In C language, a variable name cannot contain?

729


What is the use of typedef in structure in c?

534


What is the auto keyword good for?

615


program to convert a integer to string in c language'

1976