Top

Discussion

void free(void *p) performs which of the following functions?

  • A.returns pointer to allocated space for existing contents of p
  • B.de-allocates space to which p points
  • C.to abnormally terminate the program
  • D.no such function defined in stdlib.h

Answer: B

void free(void *p);
This function de-allocates space to which p points(if p is not NULL).

No comment is present. Be the first to comment.
Loading…

Post your comment