InterviewSolution
Saved Bookmarks
| 1. |
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.hI have been asked this question by my college director while I was bunking the class.This intriguing question comes from General Utilities topic in section C Library of C |
|
Answer» CORRECT option is (b) de-allocates SPACE to which p POINTS Explanation: void FREE(void *p); This FUNCTION de-allocates space to which p points(if p is not NULL). |
|