How will you free the allocated memory?
Option B:free(var-name)
Dynamically allocated memory created with either calloc() or malloc() doesn't get freed on their own. You must explicitly use free() to release the space. Syntax of free: free(ptr); This statement frees the space allocated in the memory pointed by ptr.
correct ans : B
64.3k questions
77.9k answers
244k comments
80.0k users