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

Answer Posted / priya

malloc() allocates bytes of memory for a single block
whereas calloc() allocates blocks of memory for multiple
blocks

Is This Answer Correct ?    8 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bytes are occupied by near, far and huge pointers (dos)?

674


What does calloc stand for?

651


difference between Low, Middle, High Level languages in c ?

1634


When c language was developed?

642


How do I use void main?

633






Explain how do you determine the length of a string value that was stored in a variable?

670


Write a code on reverse string and its complexity.

608


Is it better to bitshift a value than to multiply by 2?

660


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

579


What is difference between main and void main?

630


write a program in c language to print your bio-data on the screen by using functions.

6251


This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory

733


What are high level languages like C and FORTRAN also known as?

686


Write a C program to accept a matrix of any size. Find the frequency count of each element in the matrix and positions in which they appear in the matrix

1518


What happens if header file is included twice?

653