You are on page 1of 1

 

malloc() calloc()

It is a function that assigns more than


It is a function that creates one one block of memory to a single
1. block of memory of a fixed size. variable.

2. It only takes one argumemt It takes two arguments.

3. It is faster than calloc. It is slower than malloc()

4. It has high time efficiency It has low time efficiency

It is used to indicate memory It is used to indicate contiguous memory


5. allocation allcoation

You might also like