This is a discussion on c and c++ within the C and C++ Programming forums, part of the Software Development category; What are the Difference between malloc and calloc ? Malloc allocates memory blocks and returns a void pointer to the allocated ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| What are the Difference between malloc and calloc ? Malloc allocates memory blocks and returns a void pointer to the allocated space, or NULL if there is insufficient memory available. calloc allocates an array in memory with elements initialized to 0 and returns a pointer to the allocated space. calloc calls malloc in order to use the C++ _set_new_mode function to set the new handler mode. |
| Sponsored Links |
![]() |
| Thread Tools | |
| Display Modes | |
| |