1.

The ________ function returns no value.(a) malloc()(b) realloc()(c) free()(d) calloc()This question was addressed to me by my school teacher while I was bunking the class.My question comes from General Utilities in section C Library of C

Answer»

The correct option is (c) free()

Easiest explanation - The calloc() FUNCTION is used to return EITHER a null POINTER or a pointer to the allocated space. The malloc() function is used to return either a null pointer or a pointer to the allocated space. The realloc() function is used to return either a null pointer or a pointer to the possibly moved allocated space. The free() function returns no value.



Discussion

No Comment Found

Related InterviewSolutions