
Implement gm_calloc, your own calloc, which returns a zeroed block for an array of nmemb elements of size bytes each.
gm_calloc(4, sizeof(int)) // read back the 4 ints0 0 0 0gm_calloc(SIZE_MAX, SIZE_MAX) // prints null for NULLnullcalloc.cmalloc<stdlib.h>declares malloc<stddef.h>defines size_t<stdint.h>defines SIZE_MAXStandard C library
Implements the contract of a function from the standard C library.

Run the tests to grade your code
Implement gm_calloc, your own calloc, which returns a zeroed block for an array of nmemb elements of size bytes each.
gm_calloc(4, sizeof(int)) // read back the 4 ints0 0 0 0gm_calloc(SIZE_MAX, SIZE_MAX) // prints null for NULLnullcalloc.cmalloc<stdlib.h>declares malloc<stddef.h>defines size_t<stdint.h>defines SIZE_MAXStandard C library
Implements the contract of a function from the standard C library.

Run the tests to grade your code
Memory will appear here