InterviewSolution
Saved Bookmarks
| 1. |
What is the difference between malloc() and calloc()? |
|
Answer» calloc() and malloc() are MEMORY dynamic memory ALLOCATING functions. The main difference is that malloc() only takes one argument, which is the number of BYTES, but calloc() takes TWO arguments, which are the number of blocks and the size of each block. |
|