InterviewSolution
| 1. |
What Is The Difference Between Calloc() And Malloc() ? |
|
Answer» A block of memory may be allocated using the function malloc. The malloc function reserves a block of memory of specified size and RETURNS a pointer of type void. This means we can assign the base address of the block to any type of pointer. A block of memory may be allocated using the function malloc. The malloc function reserves a block of memory of specified size and returns a pointer of type void. This means we can assign the base address of the block to any type of pointer. |
|