will free() function works on the memory(pointer) which was allocated with calloc()?
no, use cfree() instead.
yes, it works with calloc as well.
calloc will free memory automatically on program exit, so no need to use free.
none of the above
free works with both malloc and calloc.
Back To Top